Displaying 1 result from an estimated 1 matches for "mynewdiv".
2006 Jan 26
0
cloneNode not draggable in IE
Here''s the problem: I have a div, id=mydiv, which I clone using:
var clonedDiv = document.getElementById(''mydiv'').cloneNode(true);
I then set the id to be mynewdiv:
cloneDiv.id = "mynewdiv"; //not using setAttribute to accomodate IE
I then remove the original div:
Element.remove(document.getElementById(''mydiv''));
I then insert the new div with:
document.getElementsByTagName("body").item(0).insertBefore(cloneDiv,docume...