Created
June 18, 2016 18:26
-
-
Save rafaelaugustos/263c8bde2b37d2d446ca2a891243bb70 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
var validaMail = /^[\w\d+\_\.]+@[\w\d]+\.+[\w]{2,4}/i; | |
if(validaMail.test($('form[name=cont-dados] input[name=email]'))){ | |
// Aqui vai meu codigo se o email estiver certo | |
}else{ | |
alert('Digite um email valido'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment