【发布时间】:2015-07-21 21:58:13
【问题描述】:
我正在遍历检查过的表行,如果某个参数为真,我想删除当前行,但我到目前为止删除了错误的行。任何帮助表示赞赏。这就是我所拥有的。
$('input[type=checkbox]').each(function() {
if (this.checked == true) {
var del_id = $(this).closest('tr').attr('data-id');
$.each(del_arr, function(index, value ) {
if (value == del_id) {
$('#spreadsheetstable tr:last').remove();
console.log('Removing :'+ del_id +' And ' + value);
}
});
}
});
【问题讨论】:
-
可以分享一下html吗?
标签: javascript jquery datatables html-table