0
Dynamically add className/class in a element
I want to add a className to my li in my nav, so the user will know if they're in home, contact, or about page, I'll just a border to specify where they are in the nav.
1 Réponse
+ 2
element.classList.toggle("secondClassName");