ES6 — DOM
Nov 4 · 2 min read
Today i want to show some ways to manipulate the JS DOM without JQuery.
Examples how to manipulate DOM .
For Example, we have an <ul> tag with links . I use id on link 3 to manipulate with getElementById.

getElementById( idName) and with innerText we can change the text inside.

On ES6 we have a lot of options to modify and use the DOM without Jquery. see the below example : I use three diferents way in order to paint <li> tags inside my HTML by a dinamic way:

Also it’s possible to modify CSS adding or removing classes , create new elements with AppendChild , etc.

I’m bit bussy learning Angular, so when i have some mins i write those articles in order to refresh my mind and most important that i say : “don’t lose the basics.”
