如何找出选择哪个元素进行排序
答案 0 :(得分:2)
$('#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
}
});