try:

var wrap = $("#wrap"); // your span or other wrapper element
wrap.children().insertBefore(wrap);  // insert children before wrapper
element, insertAfter() inverses children order
wrap.remove(); // remove wrapper element

by(e)
Stephan

2009/1/24 BrainBurner <brainbur...@gmail.com>:
>
> Hello,
>
> I'm writing an effect, which has to build a span around my element,
> but when my effect is finished I wanted to strip this span tag, in
> order to leave the situation as it was before..
>
> How can I strip a tag??
> Is there something like: $(this).parent().strip(); ???
>
> Thanks!
>

Reply via email to