如何在Jquery中获取下拉列表ID [英] how to get dropdown id in Jquery
本文介绍了如何在Jquery中获取下拉列表ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的页面中有20个下拉菜单。
如何在Jquery中获取下拉ID
i have 20 drop downs in my page.
how to get drop down id in Jquery
推荐答案
var DropDownID = Document.getElementById('<%= YourDropDownName.ClientID%>');
var DropDownID = Document.getElementById('<%= YourDropDownName.ClientID %>');
// try this code
//it will get all dropdown and their values, you can use according to your requirements.
( 选择)。 ( function (e,i){alert(e +
("select").each(function(e,i){ alert(e+
这篇关于如何在Jquery中获取下拉列表ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文