DOM and form cloning

Arnaldo Candido Junior arnaldoc at icmc.usp.br
Thu Nov 29 02:52:03 GMT 2007


Hi Everyone

I having problems to clone a form in Konqueror with DOM. The javascript 
code that I used looks like this:

var myClone = document.getElementById("myDiv").cloneNode();
document.getElementByid("myDiv2").appendChild(myClone);

The form is cloned, but the values in its text boxes just disappear. Is 
this the correct way to clone a form?

Thanks in advance,
Arnaldo




More information about the kfm-devel mailing list