Thursday, October 9, 2008

java script validation for easy numeric only text field

//java script validation for easy numeric only text field
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57))
return false;
return true;

}

//source code method calling area


No comments: