jquery - How to remove div without inner elements -


i remove 1 div element, without children. example, let's have 1 div id wrapper, , inside 5 paragraphs.

i want remove wrapper div, leave paragraphs alive. have tried both remove() , detach(), both clean out inner elements.

any advice?

http://api.jquery.com/unwrap/ should it:

the .unwrap() method removes element's parent. inverse of .wrap() method. matched elements (and siblings, if any) replace parents within dom structure...


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -