私はjQueryに少し慣れていないので、誰かが私を助けてくれることを願っています.
(li) が削除された後、要素 (li) を別の要素 (div) に変更しようとしています。
サンプルコード:
$("#inputEl>li").draggable({ 
    revert: true, 
    opacity: 0.4,
    helper: "clone"
});
$("#dropEl")
    .droppable({ 
        accept: ".drag",
        hoverClass: "dropElhover",
        drop: function(ev, ui) {
            // change the li element to div here
        }
});
問題は、私が使用するときです
drop: function(ev, ui) {
     $(ui.draggable).replaceWith("<div>Some content</div>");
}
上記の関数がトリガーされると、元のドラッグ可能な要素は無効になります。
最新の jQuery および jQuery UI 安定バージョンを使用しています。