Hi! I have vertical navigation menu on my site pages. And the distinct menu items have subitems that expandes when I click on the parent item. So I have some state of menu where some items are expanded and some are collapsed. But if I go to another site page the state of menu is changes according to page template. How can I do my menu save state while I move to another page?
My template: When click on menu item: When go to another page:
item1 > item1 > item1 >
item2 > subitem1 item2 >
item3 > subitem2 item3 >
item4 > subitem3 item4 >
item2 >
item3 >
item4 >
P.S.: Menu consists of html/css and jquery for expanding and collapsing items.