Get web control value through javascript Written by Suresh Sharma on June 27, 2008 in JavaScript with 1 comment <asp:TextBox id="txtname" runat=server ></asp:TextBox><script>function getvalue(){ var val=document.getElementById('<%=txtname.ClientID%>').value; alert(val);} Share: Email ThisBlogThis!Share to XShare to Facebook
Thankx it worked for me.
ReplyDeletethanks a lot