views:

46

answers:

1

How can i find out which element is selected for sorting

+1  A: 
$('#your-element').sortable({ //this is initial config for sortable element
  axis: 'y',
  cursor: 'crosshair',
  delay: 100,
  opacity: 0.6,
  scroll: true,
  update: function(event, ui) { //Element ready to be dropped to new place
    source_element = $(ui.item); // here is your selected item
  }
});
Vitaly Dyatlov