I am doing this with jquery
$().ready( function() {
$(document).empty();
$(document).append("<div>hallo</div>");
});
I would have expect it to empty the body and afterwards add an div with hallo into the body. But it doesen't. In firebug it does not show any errors. Why does it not work and how do I make it work?