Remove p tag using jquery without deleting content
html, jquery
Solution
This should do it...
$('p > *').unwrap();
jsFiddle.
Problem
My situation is like this ``` <p><img src="/media/118711/banner.jpg" width="344" height="113" alt="Banner"></p> ``` I want to delete the p tag using jquery but I do not need to delete content(image). Any one please can help me?