J
Janis Papanagnou
I want to use the 'cloneNode(true)' method to duplicate table rows with
all its subnodes. Cloning the complete tree is very handy but I must be
cautious because of the unique IDs and names that I'll subsequently use
to address the original row elements.
Is there any sophisticated way to adjust all the element IDs and names
of the cloned rows so that there won't be any clashes if I subsequently
address them by ID? Or do I have to manually parse the subtree and change
the ID/name attributes of each node separately?
Thanks for any hints!
Janis
all its subnodes. Cloning the complete tree is very handy but I must be
cautious because of the unique IDs and names that I'll subsequently use
to address the original row elements.
Is there any sophisticated way to adjust all the element IDs and names
of the cloned rows so that there won't be any clashes if I subsequently
address them by ID? Or do I have to manually parse the subtree and change
the ID/name attributes of each node separately?
Thanks for any hints!
Janis