EduardET

Untitled

Feb 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. (function($) {
  3.     $(document).ready(function() {
  4.         var menuitem = $('#mobile_menu .menu-item-has-children');
  5.         menuitem.each(function(){
  6.             var link = $(this).find('a');
  7.             link.click(function(){
  8.                 $('#mobile_menu .menu-item-has-children').removeClass('visible');
  9.                 $(this).parent().addClass('visible')
  10.             })
  11.         })
  12.     });
  13. })(jQuery);
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment