Assume we have the following dropdown list
<select id="status">
<option value='123' selected="selected">OPEN</option>
<option value='987'>CLOSE</option>
</select>
in jQuery 1.4.4, if call
j('#status').val();
it only returns “OPEN”, but not ‘123’
How to solve this issue? Really want the value of that option instead of text.
Please help, thanks.
$('#status option:selected').val();