I'm working with jquery.tablesorter plugin. I use sub grid. but the zebra function do this:
$("tr:visible", table.tBodies[0]).each(function(i) {
but that put function on every child tr. Can you help me to change this line for creating function only on first child of the grid.
<table class="GridA">
<tr class="firstchild"><td></td></tr>
<tr class="expand-child"><td>
<table class="GridB">
<tr><td>
</td>
</tr>
</table>
</td>
</tr>
<tr class="firstchild"><td></td></tr>
<tr class="expand-child"><td>
<table class="GridB">
<tr><td>
</td>
</tr>
</table>
</td>
</tr>
</table>
Limit function to first TR ("firstchild")