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
To avoid issues with rendered ID's, use a class instead. This won't change during rendering:
function contatoModal() { //alert("Test"); alert($(".txtTest").val()); }
HTML:
< input runat="server" id="txtTest" value="test" class="txtText" />