jquery to toggle sub-menu but keep sub-menu open if sub-menu page active

后端 未结 3 1774
臣服心动
臣服心动 2020-12-21 07:17

Just trying to dive into jquery and forgive me if this has already been answered. Searched but couldn\'t find an example relevant to what I\'m trying to do.

I have a

3条回答
  •  Happy的楠姐
    2020-12-21 07:31

    I think you have two options.

    1. Consider using Ajax to load your pages
    2. Simulate the click event on each page.

    For example:

    For "Portfolio" items add this

    
    

    For "About Us":

    
    

提交回复
热议问题