Skip to content

Instantly share code, notes, and snippets.

@vanorman
Created June 21, 2010 13:57
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