Answers for "jqery remove empty elment p"

0

jqery remove empty elment p

$('p').each(function() {
     var $p = $(this);
     if($.trim($p.html())==='') {
        $p.remove();
     }
});
Posted by: Guest on February-28-2021

Browse Popular Code Answers by Language