I'm trying to implement an accordion inside another accordion using Twitter Bootstrap. Is it possible? if so, then please help me with the code because i tried implementing it but I wasn't successful.
相关问题
- How to add a “active” class to a carousel first el
- Full Clickable Accordion in Bootstrap
- How to add Bootstrap 4 without Tether?
- Laravel overriding bootstrap template
- How to add Labels to Bootstrap dialog footer
相关文章
- Make Bootstrap tab Active on the bases of URL link
- Rails: Twitter Bootstrap Buttons when visited get
- Reduce spacing between rows
- How do use bootstrap tooltips with React?
- Need to design 8 boxes in two rows
- Trigger a Bootstrap .collapse('toggle') vi
- How to override Bootstrap mixin without modifying
- How can I ensure columns wrap equally in Twitter B
I found that solution from Alessandro is not working with Bootstrap 3. Here is a working one (slightly different, with no default expanded panel. If you need any, just add "in" class):
Simply include another accordion inside the div with the class accordion-inner:
Remember to use different accordion ids.
If you use collapse events on nested collapsible elements it helps stopping collapse events from bubbling up above panel-group level. Otherwise collapse events fired by inner collapsible elements will reach to outer elements trying to handle collapse events fired by their own collapsible elements, and cause unexpected behavior.
This example presumes that you use "panel-group" as class name to group collapsible elements.
this is working more fluidly in Bootstrap v3.2.0