Skip to content

Instantly share code, notes, and snippets.

@tanrax
Created March 21, 2014 08:53
Show Gist options
  • Save tanrax/9682232 to your computer and use it in GitHub Desktop.
Save tanrax/9682232 to your computer and use it in GitHub Desktop.
JS: Campo vacío (validar o comprobar)
if(nom.value == null || nom.value.length == 0 || /^\s+$/.test(nom.value)) {
bError = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment