Created
July 23, 2012 17:17
-
-
Save viniciusss/3164814 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function validaForm(){ | |
var emptyElement = $(":input:visible[value='']").get(0); | |
if( undefined != emptyElement ) { | |
alert("Todos os campos devem ser preenchidos!"); | |
emptyElement.focus(); | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment