Sortables ... need to get the ID of the dropped item
Hi,
Loving the new UI (been a while since I used it)!
I have two sortable list. All the LI's have unique ID's. I am dragging
LI's from one list to the other.
I need to know the ID of the LI that was dropped. I can't see a
callback that will do this, I'm able to do stuff like this:
$("#active_jobs").bind("sortreceive", function(e){
alert('dropped on: '+$(this).attr('id'));
});
$("#paused_jobs").bind("sortreceive", function(e){
alert('dropped on: '+$(this).attr('id'));
});
But what I really want to know is the ID of the LI that was dropped.
Something like this would be handy:
$("#paused_jobs LI").bind("dropped", function(e){
alert('dropped LI with ID of: '+$(this).attr('id'));
});
Thanks!