How do I get my accordion to load with all the menus closed?
问题 I'm trying to follow the example here http://twitter.github.com/bootstrap/javascript.html#collapse I have placed a mockup here http://jsfiddle.net/gqe7g/ Loading behavior is strange. It shows Menu1 then collapses it then shows Menu2 and Menu3. I would like everything to open collapsed. I have tried the following without success $('#accordion').collapse({hide: true}) 回答1: Replacing $(".collapse").collapse(); $('#accordion').collapse({hide: true}) with: $('#collapseOne').collapse("hide");