[jQuery] Select option value not working

[jQuery] Select option value not working


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