Created
June 21, 2010 13:57
-
-
Save vanorman/446876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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