KittenKatja
Well-Known Coder
I'd like to add the class "clicked" to an <a> element on click.
Bonus: I'd also like to know how to target all the children of an element.
this.class.add('clicked')
& this.classList.add('clicked')
do not work.Bonus: I'd also like to know how to target all the children of an element.