我希望实现以下功能:需要从id为
要删除表格行,可以按照以下步骤进行:
#emailTable
的表格中删除一个表格行,然后将完全相同的行追加到表格末尾,并使用JQuery隐藏追加的表格行。要删除表格行,可以按照以下步骤进行:
$("#rowid_"+id).remove();
#emailTable
的表格中删除一个表格行,然后将完全相同的行追加到表格末尾,并使用JQuery隐藏追加的表格行。$("#rowid_"+id).remove();
#rowid-id
是指 <tr>
元素,那么只需执行以下操作:$("#rowid_"+id).appendTo('table');
table
的最后一个元素之后。var a;
a = $("#rowid_"+id).html(); // store the content on a
$("#rowid_"+id).remove(); // remove the node
$('table').append(a);// append the content on table
$("#rowid_"+id).hide();//hide the appended node
$("#tr_Row_" + id).appendTo($("#tr_Row_" + id).closest("table"));
$("#tr_Row_" + id).closest("table") // get the parent-table of the row.
$("#tr_Row_" + id).appendTo(...parentTable...) // remove row from the current table
// and append it as last child to the
// parentTable