Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
109 Points
167 Posts
Mar 01, 2012 11:05 AM|LINK
hi friends i have placed script in my coding (i.e.,) in aspx function isNumeric(e) { var c == getKeyCode(e); if (c !== 8 && (c < 48 || c > 57)) { return false; } return true; } <asp:TextBox ID="txt_numeric" runat="server" MaxLength="2" onkeypress="return isNumeric(this)"Width="50px"></asp:TextBox> script to check numeric is not working....
Priyanka R
Member
109 Points
167 Posts
Re: Script is not working in IE
Mar 01, 2012 11:05 AM|LINK
hi friends
i have placed script in my coding (i.e.,) in aspx
function isNumeric(e) {
var c == getKeyCode(e);
if (c !== 8 && (c < 48 || c > 57)) {
return false;
}
return true;
}
<asp:TextBox ID="txt_numeric" runat="server" MaxLength="2" onkeypress="return isNumeric(this)"Width="50px"></asp:TextBox>
script to check numeric is not working....