Remove all p tag contains space in jQuery by Unknown on 01:13 How to remove all p tag contains space Solution : jQuery('p').each(function(){ var htm=jQuery(this).html(); if(htm==' ') { jQuery(this).remove(); }}) This small jquery will remove all empty p tag on page Tweet Share Share Share Share
0 comments: