I've a problem with jquery drag and drop. I want to get x,y , when mouse dropped . My problem is the drop function not executed .
that is my code
function DragDrop(ar)
{
var a=0;
for(a=0;a<ar.length;a++)
{
$(document).ready(function() {
$("#" + ar[a]).draggable();
$("#" + ar[a]).droppable({
drop: function() { alert('dropped'); }
});
});
}
}