Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(' .subnav .has-dropdown > a ').on('click', function() {
- if($(this).parent().hasClass('is-active')){
- $('.subnav .has-dropdown').removeClass('is-active');
- }
- else{
- $('.search__form').slideUp('fast');
- $('.subnav .has-dropdown').removeClass('is-active');
- $(this).parent().addClass('is-active');
- }
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement