Alex Rivera | Logout

clone node on drag

Asked 2009-03-08T15:04:40.950
21

i want to be able to create a copy of the element that i want to drag. im using the standard ui draggable and droppable. i know about the helper clone option. but that does not create a copy. the dragged item gets reverted back to the original position.

Edit
Report

1 Answer

2

To re-drag the clone/copy, set the withDataAndEvents argument to true:

$(this).append($(ui.draggable).clone(*true*));
answered 2010-03-01T13:05:11.253

Your Answer