==========
Code:
<script>
function test()
{
var getValue = document.getElementById('<%=TextBox1.ClientID%>').value;
alert(getValue);
}
</script>
<asp:TextBox id="TextBox1" runat="server" />
<asp:Button value="submit" id="btnSubmit" onclientClick="test();" />
Leave a comment: