[Solved] How to edit text in a div thats in a div thats in another div with javascript [duplicate]


It’s the 1st element that has this class…

document.getElementsByClassName('word')[0].innerHTML='Goodbye';

It’s the 5th element that has this tag…

document.getElementsByTagName('div')[4].innerHTML='Goodbye';

4

solved How to edit text in a div thats in a div thats in another div with javascript [duplicate]