I have a page and I need to drag items from a sortable into a droppable container. It doesn't seem to be working and I'm hoping someone can tell me why. From what I see, I have all the connectivity in place but the droppable won't receive drop from the sortable.
Please note that I'm able to do the following and need to maintain this functionality:
- drag a draggable item (not in the sortable) into the droppable
- drag a draggable item (not in the sortable) into the sortable
But I'm not able to:
- drag from the sortable into the droppable
Here's my code:
$(function() {
$('.drag').draggable({
helper: 'clone',
connectToSortable: '#sortable'
});
$("#sortable").sortable({
connectWith: '#drop'
});
$("#drop").droppable({
tolerance: 'pointer',
connectWith: '#sortable',
drop: function (evt, ui) {
var $destination = $(this);
ui.draggable.appendTo( $destination );
}
}).draggable();
});
...and there's the fiddle: http://jsfiddle.net/eEJHb/4/