Skip to content

Instantly share code, notes, and snippets.

@vanorman
Created June 21, 2010 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vanorman/446876 to your computer and use it in GitHub Desktop.
Save vanorman/446876 to your computer and use it in GitHub Desktop.
for (i=0; i<foo.length; i++)
{
if (foo.charAt(i)<"0")
{
alert("Your foo is not numeric.");
return false;
}
if (foo.charAt(i)>"9")
{
alert("Your foo is not numeric.");
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment