Release: Accordion menu plugin 1.4

An update to the jQuery accordion plugin brings you, among minor bugfixes and a demo overhaul, one notable new feature: The navigation-option automatically activates a part of the accordion based on the current location (URL) of the page. The basic idea came up in the comments on the plugin page and was at first implemented in Bernd Matzner’s HoverAccordion. The basic idea is the same: Find the anchor in the navigation accordion that matches location.href and mark it as selected and open the part of the accordion where it is inside. This gives you a sort of state-saving without the need to generate “selected”-classes on the serverside.

In addition, I’ve create a project on jquery.com/plugins, feel free to vote if you like.

-Jörn