Issues with dragging and dropping jQuery UI draggable element from one list and put it into an other

user63371 picture user63371 · Feb 9, 2009 · Viewed 22.4k times · Source

I am using jQuery UI and can create an simple drag 'n drop list. But now, I want to drop the element into an other list. jQuery always thinks the item has been droppen on the false place and slides it back into the origin list.

Answer

Frost picture Frost · Feb 9, 2009

I think the solution is found here: http://ui.jquery.com/demos/sortable/#connect-lists

and its done something like this:

$(function() {
        $("#sortable1, #sortable2").sortable({
            connectWith: ['.connectedSortable']
        });
    });