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
Instead use use appendTo. append or appendTo returns a jQuery object so you don't have to wrap it inside $().
var holdyDiv = $('').appendTo('body');
holdyDiv.attr('id', 'holdy');
.appendTo() reference: http://api.jquery.com/appendTo/
Alernatively you can try this also.
$('', { id: 'holdy' }).appendTo('body');
^
(Here you can specify any attribute/value pair you want)