我有一个 HTML 表格,定义如下:
<table id="myTable" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Birth Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Smith</td>
<td>03-11-1980</td>
</tr>
</tbody>
</table>
我想了解如何确定表的正文部分(而不是一般的表)中有多少行tbody
部分。如何使用 JQuery 确定表的 tbody 部分中有多少行?
谢谢!
最佳答案
关于JQuery - 获取表体中的行数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2819522/