learner learner - 3 months ago 11
jQuery Question

How to get multiple select box values using jquery?

How to get multiple select box values using jquery?

Answer

jQuery Tip - Getting Select List Values

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