Sorry I didn't see your question sooner. The helper that you're dragging
around is accessible via ui.helper, like so

$("#drag").draggable({
  start: function(event, ui) {
    ui.helper.append('text');
  }
});

See

http://docs.jquery.com/UI/Draggable/draggable#options

for a full list of properties on the 'ui' argument.

- Richard

On Wed, Jan 28, 2009 at 12:45 AM, [email protected] <
[email protected]> wrote:

>
> I figured it out: $('.ui-draggable:last') is the name / way to address
> the clone you're currently dragging.
> Thought I'd post the solution here in case anyone else runs into this
> problem and does a search.
>
> On Jan 26, 5:03 am, "[email protected]"
> <[email protected]> wrote:
> > Problem:
> >
> > I'm dragging a clone helper. During the drag I want to add some text
> > to the item being dragged (and also have it available when it hits a
> > droppable, but that's another story). I've tried appending $(this) in
> > the drag() section, but it just continuously adds the text to the
> > original draggable element.
> >
> > So my questions:
> > -how do I address / manipulate the cloned item during the drag- and
> > have it only fire once. Ideally I'd want to create a unique id per
> > dragged item for later use, so once I know how to address the clone I
> > should be able to add an ID.
> > - is there a way to destroy draggability for the original item once
> > it's been successfully dropped? The items being dragged do not have a
> > unique id  and I don't want to give them one - they just need to stay
> > part of a class.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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