View Demo:

Note on July 23 @9:14AM: HoyaSaxa93 wrote in to ask how to get values from select multiples. I will create the demo and code below. This would be how to set a select multiple to an array called,“ foo”.

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