Posted By

omerta83 on 07/08/10


Tagged

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 */
  4.  
  5. jQuery('p').unwrap();
  6.  

Report this snippet  

You need to login to post a comment.