You can check it in various ways.

if ($('#element').is(':empty')){
   //write your code here
}

OR

if ( $('#element').text().length == 0 ) {
   // length is 0
}

Suggest An Answer

Our Particitants

if($(#element).is(:empty)){ alert(