I would like to remove a single div element, but without its children. For example, let's say that I have one div with an id wrapper and inside it is 5 paragraphs.
I want to remove only the div shell, but leave the paragraphs alive. I tried remove () and detach (), but they both clear the internal elements.
Any tips?
source share