You assigned multiple of the same Id
attribute to the dropdownlist. Id
attribute should be unique, the browser will only render the first one. That's why you only got one correct result. You need to replace Id
attribute by using class
attribute, like below:
$(".chosen-select").select2
({
placeholder: "Choose Semester..",
maximumSelectionSize: 10,
width: 150
});