When a link with the class .active
is clicked, I want to use a JavaScript function to deactivate any other active links. The structure of the code should be as follows:
<ul class="product">
<li><a href="#myanmar" class="active">Myanmar</a></li>
<li><a href="#madagascar">Madagascar</a></li>
<li><a href="#usa">United States of America</a></li>
<li><a href="#ethiopia">Ethiopia</a></li>
<li><a href="#brazil">Brazil</a></li>
<li><a href="#australia">Australia</a></li>
<li><a href="#china">China</a></li>
<li><a href="#kenya">Kenya</a></li>
<li><a href="#canada">Canada</a></li>
</ul>