Jquery display preloader once all div elements have been Retrieved
<p>I want to display a preloader in a div and once another div has retrieved all its content I want the preloader to disappear.</p>

<p>For Example:</p>

<pre><code>&lt;div id="container"&gt;
   &lt;div id="preloader"&gt;
     loading....
   &lt;/div&gt;
   &lt;div id="containeritems"&gt;
   image
</code></pre>

<p>The container should be displayed first and then the preloader and once all the elements have been loaded I want the preloader div to disappear.</p>

<p>I have tried load and show and hide, the show and hide work but div.load function is not supported I think for <code>divs</code> how else can I listen to the containeritems div so I can tell the elements have been loaded?</p>
