I can access the id of the element dragged (see the code below) but not sure how to also grab the id of the element replaced.
the JS:
Sortable.create(selection, {
handle: '.bars-move',
animation: 150,
onStart: function (/**Event*/evt) {
var itemEl = evt.item;
var data_id = itemEl.getAttribute("data-id");
},
});
Any ideas please?