I had a similar issue with my own personal framework. I ended up creating a separate .extract() method for the purpose of removing a node from the document but keeping it floating around in that object so you could latter appendTo another node.
~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com] -Nadir-Point (http://nadir-point.com) -Wiki-Tools (http://wiki-tools.com) -MonkeyScript (http://monkeyscript.nadir-point.com) -Animepedia (http://anime.wikia.com) -Narutopedia (http://naruto.wikia.com) -Soul Eater Wiki (http://souleater.wikia.com) Már Örlygsson wrote: > `$("#foo").remove()` removes all event handlers and stored data. > > But, sometimes I'd like to temporarily remove an element from the DOM > for later reinjection, in which case the event and data removal > becomes a nuisance. > > Is there a way to do that in jQuery - aside from writing your own > `.removeTemp()` plugin? > > `$("#foo").remove(true)` > `$("#foo").remove(selector, true)` > > feels like a natural way to express this. > > any thoughts? > > > -- > Már Örlygsson > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
