Add/Remove class when clicking on element with pure JavaScript

后端 未结 0 728
谎友^
谎友^ 2021-01-01 21:23

With a for loop, I removed the active class inside the a tag. However, when I want to add a class when clicking nothing happens and the class gets added to the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题