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 li
and a
tag but without the active class name.
This has been asked so many times but I still cannot figure it out. Any help is appreciated. Thank you!
Here is the example: https://jsfiddle.net/fu5e7946/