Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $(' .subnav .has-dropdown > a ').on('click', function() {
  2.         if($(this).parent().hasClass('is-active')){
  3.             $('.subnav .has-dropdown').removeClass('is-active');
  4.         }
  5.         else{
  6.             $('.search__form').slideUp('fast');
  7.             $('.subnav .has-dropdown').removeClass('is-active');
  8.             $(this).parent().addClass('is-active');
  9.         }
  10.         return false;
  11.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement