Hi, I want to get the next value of selected value in the dropdown by JQuery. how to do ?
+1
A:
Assuming you think of select when you say dropdown: $("dropdown_selector option:selected").next().val()
dekomote
2010-09-27 11:57:02
Toooooo easy , formula thanks.
Lalit
2010-09-27 12:34:07
A:
if ($("myselect").options[selectedIndex] < $("myselect").items.length)
alert($("myselect").options[$("myselect").selectedIndex+1].text);
else
alert($("myselect").options[$("myselect").selectedIndex].text);
Parkyprg
2010-09-27 12:16:36