Change the drop function to accept two arguments: event, ui
function(event,ui){ var draggable = ui.draggable; var id = draggable.attr("id"); }
A draggable that is dropped is represented by ui.draggable
Found in jquery ui docs for droppable.
source share