Looking for some JS help here, I got brain freeze.
Attaching a video addressing what I need help with:
** Only one category can be selected at a time **
1. If a selected category is clicked and selected, it needs to be hidden if clicked again and shown if not selected and should go back to original state/look and the submenu to the right should need to be hidden.
2. If another category is selected the previously selected category should return to its original state and hide its submenu.
3. If megamenu closes selected category should return to its original state and the submenu will be hidden.