<table>
<tr id="parent_1">
<td>Parent 1</td>
</tr>
<tr class="child">
<td>Child 1</td>
</tr>
<tr class="child">
<td>Child 2</td>
</tr>
...
<tr id="parent_2">
<td>Parent2</td>
</tr>
...
</table>
How can I find the number of child rows between parent_1 and parent_2 using jQuery?
Edit: Sorry, didn't make it clear that this is just an example, the table could contain any number of parent rows, and any number of child rows