So everywhere I looked everybody says that to output values of selected options in a multiple select element one should use something like the following $(\'#selid :se
$(\'#selid :se
"in such case val() will return an array of values. Well, I can't replicate this behaviour."
You never need to use :selected to get the value of a . This is sufficient:
:selected
$('#selid').val()
Demo: http://jsfiddle.net/mattball/WZRmD/