开发者

jQuery Navigation - Keeping the accordion open and show the active page

I have seen a similar related post but my situation is a little different so I am posting a new question.

I am working on a site that was built by someone else. The navigation is an accordion style that works nicely but I need to be able to have the navigation remain open with the current active page highlighted. I am relatively 开发者_StackOverflow中文版new to jQuery and could you some help with:

  1. How do I keep the navigation open, and
  2. Highlight the active link - I know how to do this part in CSS, but I am not sure how to do that dynamically using jQuery.

Thanks in advance for any assistance.


I think this article might help you out http://www.packtpub.com/article/jquery-ui-accordion-widget-part2

Scroll down to the section "Fun with Accordion". He talks about using the navigation property and having the menu open and set for the page you are currently on.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜