Magpunta sa Google Groups Home    jQuery UI
Re: Sortable: Drag to another box, but NOT sort within self?

AJ <fireboxstud...@gmail.com>

Okay, I *may* have found a solution from some of the other threads
I've seen. So far, this seems to work:

$("#topFriends").sortable();

$('#topFriends').droppable({
        accept: '#newestFriends',
        drop: function(ev, ui) {
                $(this).sortable("refresh");
                return false;
                }

});

$("#newestFriends li").draggable({
    helper:'clone',
    connectToSortable:'#topFriends',

});

Although I should point out that the UI docs make no mention of
'connectToSortable'. I only saw it when going through this list.