ネストされたテーブルを持つテーブルがあります...
<table id="Table1">
<tr>
<td>
Row 1
</td>
</tr>
<tr>
<td>
Row 2
<table id="Table2">
<tr>
<td>
Row 1
</td>
</tr>
</table>
</td>
</tr>
</table>
jQueryを使用してtr
行数を見つけます...
var RowCount = $("#Table1 tr").length;
Table1
結合されたネストされたテーブルではなく、親テーブルの行数のみを見つけるためにjqueryを作成するにはどうすればよいTable2
ですか? 例: 探している結果は、RowCount = 2 であり、RowCount = 3 ではありません。