Skip to content

Instantly share code, notes, and snippets.

@lavaldi
Created February 15, 2014 01:58
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 lavaldi/9013454 to your computer and use it in GitHub Desktop.
Save lavaldi/9013454 to your computer and use it in GitHub Desktop.
Comprobar si Hay Elementos Vacíos con jQuery
$('*').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