Get item that was dropped into a sortable?
Hi,
I'm using a draggable + a sortable, exactly like the demo here:
When I drop an item in my target sortable, I want to get access to the dropped item so I can apply a new style class to it. I thought the receive override would help:
- $("#mySortable").sortable({
- receive: function(event, ui) {
- // how to get access to the dropped item here?
- }
- })
yeah but I'm not sure how to get access to the dropped item, looks like I get ui.item, but that's the element that came from the source list?
Thanks