Question: how to pass multiple dropdown selected value in ajax?
Answer: click(function(){ //only do something if numbers are selected if( $('#multiselect :selected'). length > 0){ //build an array of selected values var selectednumbers = []; $('#multiselect :selected'). each(function(i, selected) { selectednumbers[i] = $(selected). val(); }); //post data to handler script.