セクションに基づいた一連のスライドがあります。
<div id="slides">
<section id="first">
<section>
<table>
<thead>
</thead>
<tbody>
<tr id="somethingUnique">
...
</tr>
</tbody>
</table>
</section>
<section>
<table>
<thead>
</thead>
<tbody>
<tr id="somethingUnique">
...
</tr>
</tbody>
</table>
</section>
...
</section>
</div>
#firstセクションの最後のセクションのテーブルから最後の行のIDを取得することを選択する必要があります。
私は次のJqueryを使用していて、「未定義」を取り戻しています...何かアイデアはありますか?
var lastListItem = $('#first:last-child table>tbody>tr:last').attr("id");
alert(lastListItem);