jQuery show.bs.collapse event for nested Bootstrap collapsible buttons fires on more buttons than expected

前端 未结 3 1465
庸人自扰
庸人自扰 2021-02-14 12:55

I\'m using Bootstrap to make collapsible nested divs/buttons. I want to collapse all siblings of a div when it is expanded and to collapse all children of a div when it is colla

3条回答
  •  借酒劲吻你
    2021-02-14 13:43

    Try using shown.bs.collapse instead. http://www.tutorialspoint.com/bootstrap/bootstrap_collapse_plugin.htm
    section The following table lists a few events that can be used with the collapse functionality.

提交回复
热议问题