var html = \"Hello stuff here\" $(\"#mycontent\").append(html).fadeIn(999);
This doesn\'t seem to work.
since the fadeIn is a transition from hide to show, you'll have to hide the "html" element when you append it and then to show it.
var html = "Hello stuff here" $("#mycontent").append(function(){ return html.hide(); }); $('#blah').fadeIn(999);