[jQuery] Select option value not working

2008-12-09 Thread JQueryProgrammer
$("input[name='myselect'] option:selected").val(); is not working. It gives undefined. Can anyone please help.

[jQuery] Select option value

2008-06-02 Thread andyGr
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?