Hey everyone,
Is there any way for me to allow a user to drag a div which I've put in a sortable list (I used jquery ui's $.sortable() function), into a different sortable list?
From stackoverflow
-
Check out the
connectWithoption for sortables.Essentially, if you only want
#DivAto be able to drag elements to#DivByour sortables would be:$('#DivA').sortable({connectWith: ['#DivB']}); $('#DivB').sortable();If you want to be able to exchange items between the two you have to set the relationship both ways:
$('#DivA').sortable({connectWith: ['#DivB']}); $('#DivB').sortable({connectWith: ['#DivA']});
0 comments:
Post a Comment