skip to Main Content

Twitter Bootstrap collapse all but first

I would like to programmatically collapse all but the first item in a Bootstrap 3 collapsible accordion. However, I'm running into some weird behaviour. Please check out this fiddle and let me know what's wrong. http://jsfiddle.net/k9o2j53a/ $('button').click(function(){ var panels =…

VIEW QUESTION
Back To Top
Search