1

How can i find out which element is selected for sorting

3
  • I would like to help but you do not answer or mark any of the answers to your other questions therefore my help to you is at an end. Commented Aug 29, 2009 at 10:48
  • If your are going to participate here read the FAQ. Anybody else who finds your questions from google will not know what solution fixed your problem if you do not comment & mark an answer. Commented Aug 29, 2009 at 10:53
  • Sorry from now onwards i will do so. Please help me. Commented Aug 29, 2009 at 11:21

1 Answer 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
  }
}); 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.