1

如何找出选择了哪个元素进行排序

4

1 回答 1

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
  }
}); 
于 2009-08-29T11:00:14.763 回答