Skip to content Skip to sidebar Skip to footer

How To Collapse All Submenus On Closing JQuery Accordion Menu

I have previously asked this question. The solution provided by Ahs N worked great. But now when the menu is closed and opened again, the sub-items that were previously opened are

Solution 1:

This is what I did and seems to work according to what you asked:

if(name=="H3"){
      $(target).next().show().find("p, div").show();
}

Here is the link to the CodePen


Post a Comment for "How To Collapse All Submenus On Closing JQuery Accordion Menu"