jquery: fire a function when a specific div loads?
<p>I want to fire a function when a specific div is load.<br>
by searching I found that <code>onload</code> is not functioning on div .  </p>

<p>so I tried it by an image that work perfect But problem is that it fire the function only one time . for example when I refresh the page it fire the function but if I again refresh the page it can't fire the function again.. why is it happened ?</p>

<p><em>Any suggestion please</em> </p>

<p><strong>EDIT</strong></p>

<pre><code>&lt;div id="divID"&gt;
  &lt;img src="myimage.jpg" alt="image"/&gt;
&lt;/div&gt;

$('#divID').load(function() {
   // code to function
 });
</code></pre>
