Get the id of any ASP.Net server control using JavaScript



When used with javascript, you can use like below to get value.

 
var value=document.getElementById('#<%=controlId.ClientID %>').val();
 
if you are using jQuery, you can use like below
 
var value=$('#<%=controlId.ClientID %>').val();
 

0 Comment's

Comment Form

Submit Comment