How do I get back on onChange all selected values in my multiselect dropdown. Used plugin here. Trying to use the following but I think I\'m on the wrong track
$
$('#multiselect1').on('change', function(){ var selected = $(this).find("option:selected"); var arrSelected = []; selected.each(function(){ arrSelected.push($(this).val()); }); });