- 1

Good morning sir. How can i assign my list ol ordered ? I try one like production inside ol with DOM script. Thanks you sir.

Assign list li with JavaScript nodes. https://code.sololearn.com/WScp3KbPCOTS/?ref=app

10th Dec 2021, 6:25 AM
Malick Diagne
Malick Diagne - avatar
1 Answer
+ 1
const items = document.body.children [2].children; items[0].innerHTML = "Production"; items[1].innerHTML = "After Sales"; Be sure to check that `children` is valid e.g. not empty.
10th Dec 2021, 6:50 AM