Counting the number div loaded from external php file
<p>I have two php files, child.php and parent.php.  Child.php generates div.  Now, the parent.php calls child.php to be loaded in <code>&lt;div id='divContainer'&gt;</code>.  Now, I need to count the div inside the divContainer. Is it possible? 
I tried something like this: </p>

<pre><code>$(document).ready(function () {
   var total_record = $('#divContainer &gt; div').length;
   alert(total_record);
});
</code></pre>

<p>But it's not working.  Even an empty alert is not popping out.
Can someone here, help me on this? THank you!</p>
