我有一组带有给定类的tr行:
<tr class="rowgroupA"><td>Test Data Logs</td></tr>
<tr class="rowgroupA"><td>Test Data Logs</td></tr>
<tr class="rowgroupA"><td>Test Data Logs</td></tr>
<tr class="rowgroupA"><td>Test Data Logs</td></tr>
<tr class="rowgroupB"><td>Test Data Logs</td></tr> // I need this index
<tr class="rowgroupB"><td>Test Data Logs</td></tr>
<tr class="rowgroupB"><td>Test Data Logs</td></tr>
<tr class="rowgroupB"><td>Test Data Logs</td></tr>
更具体地说,我如何使用jquery获取类名rowgroupB的索引的第一个孩子?
答案 0 :(得分:1)