How to access ASP.NET drop down box from jquery

Posted by Sayem Ahmed on Stack Overflow See other posts from Stack Overflow or by Sayem Ahmed
Published on 2010-04-18T13:05:37Z Indexed on 2010/04/18 13:13 UTC
Read the original article Hit count: 341

Filed under:
|

Well, I have a really small problem. How can I access an ASP.NET Drop down list from jquery? I tried to use "CssClass" property of the drop down list to assign a CSS class and then accessing that list using that class, but later I found out that the class changes when an element is selected, so my initial class replaced by a new class.

I also cannot use the "ClientID" property because the part of code that access that list is not inside the page, but in a separate javascript file.

So how can I access it ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about ASP.NET