如何从jQuery中的下拉列表中获取选定的值 [英] how to get the selected value from dropdown in jQuery
本文介绍了如何从jQuery中的下拉列表中获取选定的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过JQuery在下拉列表中获取选定值的下一个值.怎么办?
I want to get the next value of selected value in the dropdown by JQuery. how to do ?
推荐答案
假设您在下拉菜单中考虑选择:$("dropdown_selector option:selected").next().val()
Assuming you think of select when you say dropdown: $("dropdown_selector option:selected").next().val()
这篇关于如何从jQuery中的下拉列表中获取选定的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文