Hi Michael, You could do something like this (untested):
var $inner = $('#container').html(); $('#container').after($inner).remove(); --Karl _________________ Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 17, 2007, at 5:03 PM, Michael Heilemann wrote:
Hey all, Alright, so its fairly easy to inject content with jQuery, like for instance with .wrap(). But how do you remove those injected elements again, without destroying the underlying content? .remove() will remove anything contained within an element, but what I need is something that only removes the element, leaving its contents alone. Any takers?