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 can probably do it like this
$('',{class:'error'}).html('Error-Homie!').appendTo($('#header'));