bongzilla

Untitled

Feb 7th, 2021
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#menu-item-201").click(function(){
  2. const subMenu = $(this).find(".sub-menu");
  3. const isShowing = subMenu.hasClass("sub-menu--opened");
  4.  
  5. return isShowing ? subMenu.attr("style", "display: none !important").removeClass("sub-menu--opened") : subMenu.attr("style", "display: block !important").addClass("sub-menu--opened")
  6. });
RAW Paste Data