learner learner - 1 year ago 63
jQuery Question

How to get multiple select box values using jquery?

How to get multiple select box values using jquery?

Answer Source

jQuery Tip - Getting Select List Values

var foo = []; 
$('#multiple :selected').each(function(i, selected){ 
  foo[i] = $(selected).text(); 
});