Skip to content

Instantly share code, notes, and snippets.

@thams017
Last active March 4, 2016 05:38
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 thams017/49d063fa3e2ebeccad8e to your computer and use it in GitHub Desktop.
Save thams017/49d063fa3e2ebeccad8e to your computer and use it in GitHub Desktop.
FormValidation
function checkAge () {
var age = document.getElementById( "age" );
if( age.value === "" || isNaN ( age.value ) === true )
{
return false;
}
else
{
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment