0

Currently I am working on a project with angular Js. I am creating two div with drag and drop

Here is the jsfiddle

What I need is that when I drag a div into another then it should clone intead of move. means the drag and drop element should remain in both divs. How can I do this ?

1 Answer 1

1

Try this code in your drop function :

$(this).append(ui.draggable.clone());

See this fiddle : http://jsfiddle.net/zHZxp/1/

Sign up to request clarification or add additional context in comments.

2 Comments

@lord_linus : you're welcome! I have had the same issue some time ago too :-)
Hey can you please help me with the question stackoverflow.com/questions/17588394/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.