Revision: 38291
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 30, 2010 08:26 by RuslanSavenok
Initial Code
function numeralsOnly(evt) { evt = (evt) ? evt : event; var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0)); if (charCode > 31 && (charCode < 48 || charCode > 57)) { return false; } return true; } yourFiled.onkeypress = numeralsOnly(e);
Initial URL
Initial Description
Initial Title
restrict non-numeric entries
Initial Tags
Initial Language
JavaScript