I use jQuery UI to link multiple lists and allow drag and drop items between different lists.
In the receive
event, I want to get the list that the item fell into. Is ui.item.parent()
correct way, or is there a ui
or event
property that allows me to access this directly?
<ul><li>item 1</li></ul> <ul><li>item 2</li></ul>
$('ul').sortable({ connectWith: 'ul', receive: function(event, ui) { var targetList = ui.item.parent(); } });
jquery jquery-ui-sortable
Armand
source share