I\'m trying make some stuff in jQuery using ASP.NET. But the ID from runat=\"server\" is not the same as the id used in HTML.
runat=\"server\"
I used to use this to get
Try putting it into a variable name:
var txtTestID = '#' + '<%=txtTest.ClientID %>'; $(txtTestID).val();
I'm not sure if the <%= likes being inside double quotes. I've always had mixed behaviors when not using the single quote.
<%=