jquery获取下拉框的选中的下标值

//方法1

$("#id").get(0).options.selectedIndex

//方法2

$("#id").prop('selectedIndex')

猜你喜欢

转载自blog.csdn.net/zhaofuqiangmycomm/article/details/105542132
今日推荐