jQuery Droppable, get the element dropped

From the drop event documentation:

This event is triggered when an
accepted draggable is dropped ‘over’
(within the tolerance of) this
droppable. In the callback, $(this)
represents the droppable the draggable
is dropped on. While ui.draggable represents
the draggable.

So:

$("#dock").droppable({
     drop: function(event, ui) {
               // do something with the dock
               $(this).doSomething();

               // do something with the draggable item
               $(ui.draggable).doSomething();
           }
});

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)