I would make sure that the items in select from activating the specific features I'll explain. I have this select:
<select id='selection'> <!-->this is for the class<!-->
<option>4B</option>
<option>5B</option>
</select>
<select id='secondSelection'> <!-->this is for the data to be loaded<!-->
</select>
if I select 4B must load all pupils corresponding to that class, pupils are in the array 4B. if instead go to select 5B must be able to load in the other select the contents of the 5B. The user can also decide to select both classes.
EXAMPLE:
4B [selected in selection] => Mario, Luigi, John are now loaded in secondSelection
similarly for all values have to be able to do the same thing by enabling multiple. I have already made a similar code in the past, but here the situation is a bit 'different, I would like the help of an expert. PEACE!
changeevent on the select