Connect a draggable to more than one sortable? (setting more than one drop target?)
Hi,
Is it possible to connect a draggable to multiple sortables targets? For example, I'd like to let the user drag and drop items from list A into either list B *or* list C.
I don't know if this is possible, I'm using the following but I think all I'm doing is overwriting the target:
// Try to connect a draggable item to two different sortables.
var element = $(createNewListItem());
element.appendTo("#listA");
element.draggable();
element.draggable("option", "connectToSortable", '#listB');
element.draggable("option", "connectToSortable", '#listC');
maybe I need to specify the "connectToSortable" param as a list of elements?
Thanks