开发者

a div where you destroy elements

开发者 https://www.devze.com 2022-12-30 02:41 出处:网络
$(\".drop\").sortable({ connectWith: \'ul\', cancel: \".ui-state-highlight\" }); $(\".draggable\").draggable({
$(".drop").sortable({
connectWith: 'ul',
cancel: ".ui-state-highlight"
});
$(".draggable").draggable({
connectToSortable: '.drop',
helper: 'clone',
revert: 'invalid',
editable: true
});

$("#test").disableSelection();

i create (clone) elements by dragging then to the the list, so i want to create a div "REMOVE HERE" so when the user drags one of these clonned elements, it wo开发者_开发百科uld just be removed

how to do that?


Check out the jQuery UI Photo Manager script.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号