Hi.
i want a jquery code which create a div contains a given content and then slide it down.
currently i have this code :
var newdivcontent = //ajax code here to bring new content
var newdivname = Math.floor(Math.random()*11);
$("#topofpage").after("<div id='"+ newdivname+"'>"+newdivcontent+"</div>");
$(newdivname).hide();
$(newdivname).slideDown("slow");
<div id="topofpage">Real Time Posts: <br></div>
but it's just creating div and not doing slidedown.
thank you