Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access Textbox from JQuery

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?

like image 584
user129211 Avatar asked May 22 '26 23:05

user129211


1 Answers

ASP.NET breaks your client ids - Microsoft not complient! Have you access ClientID store?

var textboxclientid = '<%=textbox.ClientID%>';
$('#' + textboxclientid).val('horray');
like image 122
premium_mesg_dev Avatar answered May 25 '26 11:05

premium_mesg_dev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!