I'm new to .Net and JQuery and are trying to access a textbox through jquery but can't get it to work, can someone help?
+2
A:
ASP.NET breaks your client ids - Microsoft not complient! Have you access ClientID store?
var textboxclientid = '<%=textbox.ClientID%>';
$('#' + textboxclientid).val('horray');
premium_mesg_dev
2009-06-26 05:28:59
Thanks - that helped
2009-06-26 05:36:48
A:
Give your Textbox a unique css class then use `$('.classname').val(). This way you don't need to do inline coding like '<%=textbox.ClientID%>'.
IMHO a cleaner solution....
Colin
2009-06-26 05:51:52