title: How to collapse all submenus on closing jQuery accordion menu
body: <p>I have previously asked <a href="https://stackoverflow.com/questions/31907928/how-do-i-simultaneously-open-child-and-sub-child-of-a-parent-in-jquery-accordio/31908398?noredirect=1#comment51732008_31908398">this question</a>. 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 still open in whatever configuration they were left. How do I clear this state but still retain the effects of the excellent solution I am using?</p>