Pages - Menu
(Move to ...)
Home
About Us
Contact Us
▼
Friday, 27 June 2008
Get web control value through javascript
<asp:TextBox id="txtname" runat=server ></asp:TextBox>
<script>
function getvalue()
{
var val=document.getElementById('<%=txtname.ClientID%>').value;
alert(val);
}
1 comment:
Farid
26 May 2009 at 00:17
Thankx it worked for me.
thanks a lot
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
Thankx it worked for me.
ReplyDeletethanks a lot