Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jqery remove empty elment p

$('p').each(function() {
     var $p = $(this);
     if($.trim($p.html())==='') {
        $p.remove();
     }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jqery #remove #empty #elment
ADD COMMENT
Topic
Name
6+5 =