There's built-in support for this. Just use the helper option, setting the value to 'clone': http://docs.jquery.com/UI/Draggable#option-helper
Here are some demos: http://jqueryui.com/demos/draggable/#visual-feedback - Richard On Mon, Aug 3, 2009 at 5:35 AM, Oliver <[email protected]> wrote: > > Hi > > Basically, I have a <ul> list of <div>s. I would like to be able to > click & drag on an <li>, and it create a clone of the element which > becomes a draggable. > > You will understand what I'm trying to do by looking at this page: > http://olivertreend.com/playground/draggable.html > > I have the basic functionality there at the moment, but I'd like it if > the frames would stay in position in the sidebar, and a clone was > created instead. > > Does anybody know of any simple functionality to do this? > > I was thinking maybe making the original draggable, and using the > 'start' event on the draggable to create a clone and sit it directly > underneath the original. The original would be dragged, leaving the > clone looking like the original. > > Would anybody be able to help me achieve this? Or does anybody have > any better ideas about how to do this? > > Thanks a lot! > > Oliver > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
