使用 jquery 或 table 拖动时隐藏 table 行
Hiding row of table when it is dragging using jquery sortable
我正在 jquery 拖放 table,当我研究它时,我发现下面的工作 fiddle,它工作正常,但我的要求是我需要在开始拖动后隐藏该行,并且仅在放下时才需要显示。我怎样才能做到这一点?
$("tbody").sortable({
appendTo: "parent",
helper: "clone"
}).disableSelection();
尝试在开始事件中隐藏克隆
$("tbody").sortable({
items: "> tr:not(:first)",
appendTo: "parent",
helper: "clone",
start: function(e, ui){
ui.helper.hide()
}
}).disableSelection();
我正在 jquery 拖放 table,当我研究它时,我发现下面的工作 fiddle,它工作正常,但我的要求是我需要在开始拖动后隐藏该行,并且仅在放下时才需要显示。我怎样才能做到这一点?
$("tbody").sortable({
appendTo: "parent",
helper: "clone"
}).disableSelection();
尝试在开始事件中隐藏克隆
$("tbody").sortable({
items: "> tr:not(:first)",
appendTo: "parent",
helper: "clone",
start: function(e, ui){
ui.helper.hide()
}
}).disableSelection();