title: any method like onshow() for a div
body: <p>I have a div that is shown or hidden dynamically. I want some function to execute when the div is shown for the first time. Let me know how to do that.</p>
  
  <pre><code>&lt;div id="firstDiv"&gt;&lt;/div&gt;
  &lt;div id="secondDiv"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>so when <code>$('#secondDiv").show();</code>
  I want to perform some function.</p>
  
  <p>How I can do that?</p>