0
Good morning. I have the following menu:
<ul>
<li class="active"><a href="?type=0">Ranking PvP</a></li>
<li><a href="?type=2">Ranking Clãs</a></li>
<li><a href="?type=1">Ranking Guilds</a></li>
</ul>
Where class="active" defines a different coloring for which tab is open. I would like the user to choose the Clan Ranking for example, change the class from the pvp menu to none and the clan Ranking to active. I tried it this way but I was unsuccessful:
<script>
$("#li2").click(function(){
$("li1").removeClass("active");
$("li2").addClass("active");
});
</script>
<ul>
<li id="l1" class="active"><a href="?type=0">Ranking PvP</a></li>
<li id="l2"><a href="?type=2">Ranking Clãs</a></li>
<li id="l3"><a href="?type=1">Ranking Guilds</a></li>
</ul>
Perfect! That’s what it was ;)
– GGirotto