Archive

Tag Archives: aspx

There is interesting trick to catch ASPX runat=”server” controls by jQuery selector on client side:

<asp:DropDownList id=”ddlFirst” runat=”server”>
</asp:DropDownList>

jQuery(‘select[id$=ddlFirst]’).val();

Regular jQuery(‘#ddlFirst’) doesn’t work because on client side ASPX used ClienID like ‘Something_ddlFirst’ instead of ‘ddlFirst’.

Advertisements