How to slideDown a new DIV using jQuery?
<p>i want a jquery code which create a div contains a given content and then slide it down.</p>

<p>currently i have this code :</p>

<pre><code>var newdivcontent = //ajax code here to bring new content
var newdivname = Math.floor(Math.random()*11);
$("#topofpage").after("&lt;div id='"+ newdivname+"'&gt;"+newdivcontent+"&lt;/div&gt;");
$(newdivname).hide();
$(newdivname).slideDown("slow");


&lt;div id="topofpage"&gt;Real Time Posts: &lt;br&gt;&lt;/div&gt;
</code></pre>

<p>but it's just creating div and not doing slidedown.</p>

<p>thank you</p>
