Hi,

Will this work? I've used something similar before.

update : function (e, ui) {
    var id = $(ui.item).attr('id'); // gets id
}

On Sep 15, 12:33 am, buzz <[EMAIL PROTECTED]> wrote:
> 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!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to