jquery-ui - position of a list item when starting drag and drop?
- by user246114
Hi,
I am using the jquery-ui library. I have two sortables. I want to know the index of the dragged source item. I have something like this:
$(function() {
$("#sortable1, #sortable2").sortable({
connectWith: '.connectedSortable'
}).disableSelection();
$("#sortable1").sortable({
start: function(event, ui) {
…