Results 1 to 7 of 7
Thread: DOM - Move element?
Dec 20, 2006, 20:21 #1
- Join Date
- Dec 2002
- 0 Post(s)
- 0 Thread(s)
DOM - Move element?
I am creating a web app and I want to be able to move an object to another spot.
Right now what I have done is copy the html of the old one, insert it to the end of the node I want, then delete the old one.
As a result, I lose events/observers that have been applied (i.e. for double clicking, dragging, etc.)
Edit: I also have <input> boxes in the element I wanna copy, so if I just get the HTML I lose their values too. If there is some way to copy the whole object, with the "correct" values, applied events, etc.. that would be WONDERFUL!