最後の tr を取得してから最後の td を取得しようとしています
var lastimageId = $("#GVUserWebDetail tr:last").children("td:first").html();
しかし null が返されます
解決策を教えてください
最後の tr を取得してから最後の td を取得しようとしています
var lastimageId = $("#GVUserWebDetail tr:last").children("td:first").html();
しかし null が返されます
解決策を教えてください
最後のtrを取得してから最後のtdを取得しようとしています
最後の行とセルを取得しようとしている場合は、次のようにします。
$(function()
{
var bottomRightCell = $("#GVUserWebDetail tr:last-child td:last-child");
var message = 'id: ' + bottomRightCell.attr('id') + '\n';
message += 'text: ' + bottomRightCell.text();
alert(message);
});