lunes, 10 de diciembre de 2012

Setting value TextBox using Javascript

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 
    <script type="text/javascript" lang="javascript">
        function setValue(TextBox)
        {
            TextBox.value = '0';
        }
    </script>
 
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"  OnBlur="setValue(this);" />
    </div>
    </form>
</body>
</html>