$(".profile_icon").liveDraggable({
start: function(event, ui){
$("#team_deletezone").show();
$(this).addClass('valid');
},
stop: function(event, ui){
$("#team_deletezone").fadeOut();
},
containment: 'document',
helper: 'clone',
opacity: 0.70,
zIndex:10000,
appendTo: "body"
});
所以项目拖动然后什么也做不了。在第二滴它正确地发射?
当项目被删除时,它应该给出JS alert();
查看JSfiddle
答案 0 :(得分:1)
只需将liveDroppable
更改为droppable
及其works:
$("#team_deletezone").droppable({
tolerance: 'pointer',
drop: function( event, ui ) {
alert("This Worked!");
}
});