When I\'m adding a div to body, it\'s returning the body as the object and then whenever I use that - it\'s obviously using body. Bad.
Code:-
var hol
Using jQuery appendTo try this:
var holdyDiv = $('').attr('id', 'holdy'); holdyDiv.appendTo('body');