Hi, I have elements inside a div. I want to detect that when some clicks and drags the elements outside the div. I want the code to take that elements html code and take it out of the div but still on the page.
that way when the person drags the element out of the div the element no longer belongs to the div.
How can one do this?
I have elements for example like text or the <a> tag inside a div. everything is draggable. so you can drag the <a> tags . I want to detect if the user drags the <a> tags out of that div to take the <a> tag html code out of the div. So the element no longer is linked or the child of the div. I want it to become a parent of it's own. like right now when you drag the elements and then drag the div, the div will still move the <a> tag that is now displayed outside of the div. I want to break that link... and the same goes the other way around where if there is an <a> tag outside of the div and the user clicks and drags that <a> tag and puts it into a div it will become the divs child.
How would one do this?
1 Replies - 445 Views - Last Post: 23 August 2011 - 04:05 PM
Replies To: how to detect if element inside a div been dragged out of the div ?
Page 1 of 1