📜  jquery ui sortable disable child - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:15.888000             🧑  作者: Mango

代码示例1
/*
When you instantiate your sortable list, you can assign options, one of
which is elements not to drag on.
*/
$(function() {
    $("#sortable-list").sortable({
        cancel: '#element-not-to-be-dragged'
    });
});