Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

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 ?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try this code in your drop function :

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

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

share|improve this answer
    
Thanks samual that worked for me – Rohitashv Singhal Jul 11 '13 at 7:57
    
@lord_linus : you're welcome! I have had the same issue some time ago too :-) – Samuel Caillerie Jul 11 '13 at 8:01
    
Hey can you please help me with the question stackoverflow.com/questions/17588394/… – Rohitashv Singhal Jul 11 '13 at 10:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.