使用jQuery查找所有下拉列表的ID [英] Find all dropdownlist's id using jquery
本文介绍了使用jQuery查找所有下拉列表的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的aspx页面上有一个名为"listState"的面板
现在在该面板中,我有多个下拉菜单.
我想要在"listState"中显示的所有下拉列表的ID.
我该如何使用JQUERY
我尝试了以下代码
$(''#<%= listState.ClientID%>'').find("select")
但这并没有给我所有下拉列表的ID.
实现此目的的方法.
I have a panel named "listState" on my aspx page
Now in that panel i have number of dropdowns.
I want id of that all dropdownlist present in "listState"
How can i do this using JQUERY
I tried following code
$(''#<%=listState.ClientID%>'').find("select")
But it doesnt gives me id of all dropdownlist.
What to do to achieve this.
推荐答案
(''#<%= listState.ClientID%>'')).find("select")
但这并没有给我所有下拉列表的ID.
实现该目标的方法.
(''#<%=listState.ClientID%>'').find("select")
But it doesnt gives me id of all dropdownlist.
What to do to achieve this.
在这里,你去了
Here you go
(文档).ready(函数(){ var name = []; var input =
(document).ready(function () { var name = []; var input =
这篇关于使用jQuery查找所有下拉列表的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文