- 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
1 Antwort
+ 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.