When I drop something to jquery droppable, I want to get the dropped items' id. When I did it like this:
$("#here").droppable({
tolerance: 'fit',
accept: ".one",
drop: function(){
id = $(this).attr("id");
alert (id);
}
});
it of course alerted the id of the droppable here
. How can I select the id of the dropped div?