[jQuery] Select option value not working
$("input[name='myselect'] option:selected").val(); is not working. It gives undefined. Can anyone please help.
[jQuery] Select option value
Hi All, Here is a simple code: . . .. . How can I get the value of the selected option? I tried function specify(current){ var spName = $j(current+" option:selected").val(); alert(spName); } But it returns undefined value. What is wrong here?