My HTML is:
-
1.Try to use collapse()
with options, the 'parent'
is important
$("#collapseMenu").collapse({"toggle": true, 'parent': '#navaccordion'});
$("#collapseQuickLinks").collapse({"toggle": true, 'parent': '#navaccordion' });
Fiddle: http://jsfiddle.net/hieuh25/Xut4C/6/
2.Basically you have 2 ways:
Add class in
to that div, e.g: cause that div to open.
Use collapse()
with option 'toggle': true
as above, when the div is closed.
Hope it helps.
- 热议问题