例えば table id="myTable" から最後の行を削除する場合
$('#myTable tr:last').remove();
n 番目の行を削除する場合
$('#myTable tr:eq(n)').remove();
参考
http://jquery-howto.blogspot.jp/2009/05/remove-bottom-table-row-using-jquery.html
オブジェクトは削除しないらしいので delete しておいた方が良いのかしら?
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
例えば table id="myTable" から最後の行を削除する場合
$('#myTable tr:last').remove();
n 番目の行を削除する場合
$('#myTable tr:eq(n)').remove();
参考
http://jquery-howto.blogspot.jp/2009/05/remove-bottom-table-row-using-jquery.html
オブジェクトは削除しないらしいので delete しておいた方が良いのかしら?
Register as a new user and use Qiita more conveniently
Go to list of users who liked