Skip to content

Instantly share code, notes, and snippets.

@rickslayer
Created July 20, 2020 18:29
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 rickslayer/49b695910e133fcc9f6c8e1b7389c823 to your computer and use it in GitHub Desktop.
Save rickslayer/49b695910e133fcc9f6c8e1b7389c823 to your computer and use it in GitHub Desktop.
$(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