I'm new with jquery and I want to count the existing elements from a table and the html structure is like:
<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.
i've tried jquery statements from jQuery: count number of rows in a table an many more sits but nothing worked for me. My not working "solution" is
$("table[id='myid'] > tbody >tr").length
or
$('table#myid >tbody:last >tr').length
I'm thankful for any hints and tips
Mario