私はjqueryを初めて使用し、テーブルから既存の要素をカウントしたいのですが、html構造は次のようになります。
<table summary="">
<tr>
<td>
<table id="myid" some more attributes> <-- i got that id and
<tbody>
<tr>foo</tr> <---counting
<tr>bar</tr> <---counting
</tbody>
</table>
</td>
</tr>
</table>
HTML is apex gernerated.
jQueryからjqueryステートメントを試しました。テーブル内の行数を数えますが、何も機能しませんでした。私の機能していない「解決策」は
$("table[id='myid'] > tbody >tr").length
また
$('table#myid >tbody:last >tr').length
ヒントやコツに感謝します
マリオ