0
$(".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"
});

所以项目拖动,然后什么都不做。在第二次下降时它会正确触发吗?

当物品被丢弃时,它应该给一个 JSalert();

查看JSfiddle

4

1 回答 1

1

只需更改liveDroppable即可:droppable

 $("#team_deletezone").droppable({
        tolerance: 'pointer',
        drop: function( event, ui ) {
           alert("This Worked!");
        }
    });
于 2012-11-20T16:27:31.740 回答