Posted By

riddla on 07/09/10


Tagged

jquery remove wrap unwrap


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

riddla
romainsauger


jQuery unwrap


 / Published in: JavaScript
 

URL: http://benalman.com/projects/jquery-unwrap-plugin/

thanks to the original author

  1. $.fn.unwrap = function()
  2. {
  3. this.parent(':not(body)')
  4. .each(function(){
  5. $(this).replaceWith( this.childNodes );
  6. });
  7.  
  8. return this;
  9. };

Report this snippet  

You need to login to post a comment.