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
2009-08-29 11:00:14