Created
February 15, 2014 01:58
-
-
Save lavaldi/9013454 to your computer and use it in GitHub Desktop.
Comprobar si Hay Elementos Vacíos con jQuery
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
$('*').each(function() { | |
if ($(this).text() == "") { | |
//Aquí Tu Código | |
} | |
}); | |
/* devuelve True o False si el elemento esta vacío. */ | |
var emptyTest = $('#myDiv').is(':empty'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment