||05-01-2013 04:07 PM
Clicked link to stay at hover state?
Okay so basically I have this little menu to toggle between two tags
<li><a href="#" class="sort" onclick="reveal('1');">1</a></li>
<li><a href="#" class="sort" onclick="reveal('2');">2</a></li>
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?
||05-01-2013 10:51 PM
Why are you using a 'hover state'? use display:none and display:block
|All times are GMT +1. The time now is 06:28 AM.
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.