我有以下标记。我如何在表格中找到类abc
的tr
s的数量?如何使用jquery查找具有特定类的总tr?
<html>
<body>
<table>
<tr class='abc'>
<td> i am from bd </td>
<td> i am from bd </td>
<td> i am from bd </td>
</tr>
</table>
</body>
</html>
这是基本的jQuery:'$( '表> tr.abc')length' [jQuery的的 –
可能的复制:计数的数量在表中的行](http://stackoverflow.com/questions/1149958/jquery-count-number-of-rows-in-a-table) –
谢谢我亲爱的 –