Monday 6 June 2016

Remove all empty tags in class

How to remove all empty tags in class






Solution:


jQuery(function() {
  jQuery(".region-content p:empty").remove();
});

I will remove all empty tag inside "region-content" class





banner
Previous Post
Next Post

0 comments: