Remove a dom element from the document, but save it as a variable?

Posted by Matrym on Stack Overflow See other posts from Stack Overflow or by Matrym
Published on 2010-04-30T06:51:09Z Indexed on 2010/04/30 6:57 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

Is there a way to remove a dom element from the document, but save it as a variable? I'm guessing I have to save the clone as a var, and then remove the original?

Also, would such a technique store styles etc?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom