views:

15

answers:

1

So I know that if an element is droppable, then you can set an option like:

drop: function(){
 alert('something was dropped');
}

but how can I set it so I can reference the element dropped onto it, so I could do something like this:

drop: function(){
 alert(elementId + ' was dropped');
}

Thanks.

+1  A: 
drop: function(event, ui) {
    alert($(ui).attr("id") + " was dropped");
}
hunter