jquery find blank p element and remove it code example
Example: jqery remove empty elment p
$('p').each(function() {
var $p = $(this);
if($.trim($p.html())==='') {
$p.remove();
}
});
$('p').each(function() {
var $p = $(this);
if($.trim($p.html())==='') {
$p.remove();
}
});