Posted By

omerta83 on 07/08/10


javascript jquery

Versions (?)

How to remove the parent elements of any object

 / Published in: JavaScript

  1. /* here we locate any paragraph elements and then
  2. 'unwrap' the parent elements around them. These
  3. could be other divs, spans or anything really */
  5. jQuery('p').unwrap();

Report this snippet  

You need to login to post a comment.