0

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.

2
Contributors
1
Reply
2
Views
5 Years
Discussion Span
Last Post by touch_the_sky
0

Google around for 'jQuery each', something like that might work:

$('#id').children().find('select').each(function(){
    some_array[] = $(this).attr('id');
});

Edited by touch_the_sky: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.