Answer the question
In order to leave comments, you need to log in
How to make it so that when a link is clicked, the active class is added to it, while it is removed from others?
There is a list of links:
<a class="active" hrref="#">Href 1</a>
<a hrref="#">Href 2</a>
<a hrref="#">Href 3</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question