Check for Empty Elements

0
0

Do something for each empty element found:

$('*').each(function() {
         if ($(this).text() == "") {
                   //Do Something
         }
});

TRUE or FALSE if element is empty:

var emptyTest = $('#myDiv').is(':empty');
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.