Demo: http://jsfiddle.net/vMQVy/2/
Take the item, put it in the basket ... Then delete this element from the basket and try to put it there again (the same or different element) ...
Droppable is still disabled
Code Part:
$(function() {
$(".item").draggable({
revert: 'invalid',
cursor: 'move'
});
$("#items").droppable({
drop: function( event, ui ) {
$("#trash").droppable( "enabled" )
}
});
$("#trash").droppable({
out: function() {
$(this).droppable( "enabled" )
},
drop: function( event, ui ) {
$(this).droppable( "disable" )
}
});
});
Can help me with a solution?
source
share