Tutorial Check for Empty Elements
Do something for each empty element found: $('*').each(function() { if ($(this).text() == "") { ...
https://iskablogs.blogspot.com/2014/03/tutorial-check-for-empty-elements.html
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');
$('*').each(function() {
if ($(this).text() == "") {
//Do Something
}
});
TRUE or FALSE if element is empty:
var emptyTest = $('#myDiv').is(':empty');