Active class on nav hover


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. jQuery(document).ready(function($){
  3. $("#nav li").hover(
  4. function () {
  5. $(this).addClass('active');
  6. },
  7. function () {
  8. $(this).removeClass('active');
  9. }
  10. );
  11. });
  12. </script>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.