Categories
jQuery Tutorials

Find Empty Elements using JQuery

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 *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.