
IsNumeric() function
December 2, 2010A simple IsNumeric() function to validate numeric variables in javascript
function IsNumeric(input)
{
input = input + "";
return (input/1) == input && input.length > 0;
}
Advertisement