remove new div after 5 seconds
<p>i want to add a div and after 5 seconds remove it.
i tried</p>

<pre><code>$("#mainContentTD").prepend("&lt;div style='color: #038a00; padding-bottom:10px;'&gt;Your detailes where sucsesfuly... &lt;/div&gt;").delay(5000).remove("this:first-child");
</code></pre>
