Created
July 20, 2020 18:29
-
-
Save rickslayer/49b695910e133fcc9f6c8e1b7389c823 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
$(function(){ | |
let el = $("#elementoPai").find('input, select'); | |
let cnt = el.filter(function(){ | |
return !$(this).val(); | |
}).length; | |
if (cnt == el.length){ | |
alert('erro'); | |
}else { | |
alert('tudoOK'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment