Clicked link to stay at hover state?
Okay so basically I have this little menu to toggle between two tags
Now what I would like is that when I click one of the links, that the hover state will stay active, and when you click the other link that it switches (so that the hover state that was active on the clicked link will be remove and switch to the tag clicked after that). I've been looking up all kind of jQuery code but nothing seems be working for me and it totally confuses me?
<li><a href="#" class="sort" onclick="reveal('1');">1</a></li>
<li><a href="#" class="sort" onclick="reveal('2');">2</a></li>