[英]Bootstrap - Collapse all accordions and show clicked
I have a question regarding the accordions used in bootstrap. 我对引导程序中使用的手风琴有疑问。
On my page there are multiple accordions using different IDs as different content is loaded into each one through Kendo. 在我的页面上,有多个使用不同ID的手风琴,因为通过Kendo将不同的内容加载到每个手风琴中。
What I want to be able to do is collapse all accordions when clicking on a link that opens one accordion... 我想要做的是单击打开一个手风琴的链接时折叠所有手风琴...
I guess an example would be 我想一个例子是
#accordion1 //is expanded
#accordion2 //is expanded
#accordion3 //is expanded
#accordion4 //is collapsed
link clicked expands accordion4
\#accordion1 //is expanded
\#accordion2 //is expanded
\#accordion3 //is expanded
\#accordion4 //is expanded
but what I want is accordion1, accordion2 and accordion3 to collapse and accordion4 to expand 但是我想要的是手风琴1,手风琴2和手风琴3折叠而手风琴4扩展
Is this possible with bootstrap or would I have to create some custom code in Kendo or jQuery? 引导程序有可能吗?还是我必须在Kendo或jQuery中创建一些自定义代码?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.