I wrote a quick accordion pattern that uses the anchor attribute of a url to determine which panel should be expanded by default: http://skulljackpot.com/2009/03/30/quick-and-dirty-but-useful-jquery-accordion-pattern/
It'd let you write links like http://example.com/path/to/page#menu-2, and have that panel begin in an expanded state. Chris On Apr 19, 6:49 pm, "abhishekgal...@gmail.com" <abhishekgal...@gmail.com> wrote: > Hi All, > > I am using JQuery accordion to create a menu box , my problem is that > say if I have 4 containers (Divs/menu ) and at runtime I want to open > one of them depending upon the variable passed. > > I know using the option "active:2" will open the 2nd container but can > anyone please tell me what is the syntax to set it dynamically... > > for example ,If i have something like this ... > Menu 1 > a > b > Menu 2 > c > d > Menu 3 > e > f > > now If I want to open Menu 2 depending upon some value passed , how do > we do that ?