views:

30

answers:

1
$("#b").draggable();
$("#map_canvas").droppable({
drop: function() { 
    //alert('dropped');

    aFn();
    }

thanks

A: 
$("#map_canvas").droppable({
    drop: function(event, ui) { 
        $(this).remove(); // Destroy droppable
        ui.draggable.remove(); // Destroy draggable
    }
});
Konrad Garus