Following is the code to find empty elements from the webpage:

JQuery code:

$('*').each(function(){ if($(this).text() == ""){ //Empty Element found..! } }); 

Leave a Reply

Your email address will not be published. Required fields are marked *