I have created this fiddle
$(function () {
$('#draggable').draggable({
helper: 'clone'
});
$('#droppable1, #droppable2').droppable({
drop: function (event, ui) {
$(this)
.append(ui.helper.clone(false).css({
position: 'relative',
left: '0px',
top: '0px'
}));
}
});
});
When I drag the text, i want the drop "anchor" to be its top left corner, however, it always goes to the middle cell.
How can i do it so that no matter the width of the dragged element, if it spans multiple droppables, it goes to the one where either the mouse is over, or the first one?