Hi,
I've got HTML elements created in JavaScript and have appended them to parent node. How do I add some text in between them in the parent node?
I need to do something like this....
So I've got two elements separated by " | ".
How do I add this text?
Thanks,
Jon
I've got HTML elements created in JavaScript and have appended them to parent node. How do I add some text in between them in the parent node?
I need to do something like this....
Code:
parent.appendChild(child1); //add the text " | " in between... parent.appendChild(child2);
How do I add this text?
Thanks,
Jon
Comment