Moving an element to the body using jQuery

Posted by DanC on Stack Overflow See other posts from Stack Overflow or by DanC
Published on 2010-06-07T14:17:41Z Indexed on 2010/06/07 14:22 UTC
Read the original article Hit count: 214

Filed under:
|
|

How can I move an element to the end of the body?

Using jQuery, I want some given element to be moved to the body, preferably to be the last element contained by it.

Imagine the following would be valid:

$('#myElement').moveToTheEndOfTheBody();

Thanks!

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dom