Hello all
I have seen examples of counting children of an element like a div. I have
tried to customize those examples to work for my situation, but with no
success. What I'm trying to accomplish seems simple, but I have not been
able to make it happen. I'm simply trying to count the 'group#' divs inside
of the 'master' div. I was hoping that something like:

       var ct = $('#master').children().size();

would work, but being new to JQuery I have not been able to find a
solution.
Thanks in advance,

<div id="master">
<div id="group1">
<table>
<tr>
<td>
content inside area
</td>
</tr>
</table>
</div>
<div id="group2">
<table>
<tr>
<td>
content inside area
</td>
</tr>
</table>
</div>
</div>

Reply via email to