Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
314 views
in Technique[技术] by (71.8m points)

javascript - Navbar dropdown button is not opening and closing on click on shopify website

hi i am working on a shopify website. it is opening all the dropdown buttons at once, what I want is to on and close the dropdown button simultanuesly

website URL: https://9xmt7ifohgy3vu98-18691129395.shopifypreview.com

it is not working properly i have tried the code as well

[![

jQuery(".has-dropdown").click( function () {
      $('.sub-nav-item--expanded').removeClass('sub-nav-item--expanded');
      var nextSibling = $(this).next();
          nextSibling.toggleClass("sub-nav-item--expanded");  
});
question from:https://stackoverflow.com/questions/65840088/navbar-dropdown-button-is-not-opening-and-closing-on-click-on-shopify-website

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...