var $div = $(\'\').appendTo($(\'#header\')); When creating new elements and adding them to the DOM, do you need the endi
When creating new elements and adding them to the DOM, do you need the endi
you need the ending tag : http://api.jquery.com/appendTo/ for example
$('Test').appendTo('.inner');
Test
it should also be
.appendTo('#header');
and not
.appendTo($('#header'));