<script type='text/javascript'> $(window).load(function(){ $("#main-menu a").click(function() { $('.active').removeClass('active'); $(this).addClass("active"); }); });> </script> <style> .active {font-weight:bold} </style> <!--Navigation--> <nav id="main-menu"> <ul class="right"> <li><a href="#">Home</a></li> <li><a href="#">Test Link 1</a></li> <li><a href="#">Test Link 2</a></li> <li><a href="#">Test Link 3</a></li> </ul> </nav>
No comments:
Post a Comment