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
In WebForm / HTML Page....
In Jquery
var UserName = $("[id*=txtUserName]").val(); alert(UserName);
100% Sure its Working for me....