To select an ASP.NET server control with jQuery Could we use:
$ ("# <%=idOfControl.ClientID%>")The ClientID Represents the unique ID assigned to the control at runtime
Another easy way to select all the controls That it's ID ends with the Specified text is:
$ ("[id $ = '_idControl']"). each (function () {idControl
});
Where is Replaced for the controls' ID That we want to select, this is pretty Useful When you do for example with checkboxes inside a Datalist.
0 comments:
Post a Comment