[jQuery] Get the value of the option elements

[jQuery] Get the value of the option elements


Hello,
The following code below doesn't seem to give the expected result:
$('#aUsers option:selected').each(function() {
console.log('user: ' + $(this).val());
});
It will display the empty string.
--
View this message in context: http://www.nabble.com/Get-the-value-of-the-option-elements-tp24566521s27240p24566521.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.