I am trying to open and close the accordion panels programmatically. Here is a simplified version of my code. Despite the fact that I set the first panel to be false, and the second panel to true, only the first panel opens when it loads in the browser (FF3).
var accordionContainer = new dijit.layout.AccordionContainer().placeAt("test");
var accordPane = new dijit.layout.ContentPane({"title": "test", "content":"hello"});
var accordPane2 = new dijit.layout.ContentPane({"title": "test1", "content":"hello1"});
accordionContainer.addChild(accordPane);
accordionContainer.addChild(accordPane2, 1);
accordPane.startup();
accordPane2.startup();
accordionContainer.startup();
accordPane.selected = false;
accordPane2.selected = true;
source
share