tags:

views:

58

answers:

2

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
Toooooo easy , formula thanks.
Lalit
A: 
if ($("myselect").options[selectedIndex] < $("myselect").items.length)
      alert($("myselect").options[$("myselect").selectedIndex+1].text);
else
      alert($("myselect").options[$("myselect").selectedIndex].text);
Parkyprg