How to remove child element and spaces using jquery?
I have the following content:
<div class="sectionA"> <p>sfadfafdafdafdaf</p> </div>
If I do:
$(".sectionA *").remove();
I get this:
<div class="sectionA"> </div>
How do I remove the spaces after removing the <p>
child element?