I have a div which contains a paragraph tag which contains text. What I want is to remove the p tags but keep the text in the div? is this possible in jQuery?
<div id="footright"><p>Circus</p></div>
There's lots of ways you can do it. I'd probably go with:
$('#footright > p').contents().unwrap();
Yes:
$('#footright').text($('#footright').text());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With