function checkDec(el){ var ex = /^[0-9]+\.?[0-9]*$/; if(ex.test(el.value)==false){ alert('Incorrect Number'); } }
<asp:textbox id="text1" runat="server" onblur="checkDec(this);" />
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)