moving nodes possible

E

ewosch

Hi,
is there a possibility to move a node from one child position to
another ?
thanks
Wolfgang
 
P

Peroli

Hi,

Look for

document.insertBefore(nodeToMove, ReferenceNode);

- Peroli Sivaprakasam
 
P

Peroli

Hi,
Did you try it? Better try it. I have used it and it worked for me.

- Peroli Sivaprakasam
 
M

Martin Honnen

ewosch said:
is there a possibility to move a node from one child position to
another ?

Yes, if for methods like
appendChild
insertBefore
you pass in nodes already in the document tree then they are removed
from the old position before being inserted at the new position.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top