Bootstrap Collapse - Expand All
Figured it out. when you want to collapse your elements - you need to specify the content div of your #accordion, in your case (and also mine) the class is .collapse.
$('#accordion .collapse').collapse('show');
I got some help offline on this question. The script to use is
$('#accordion .panel-default').on('click', function () {
$('#accordion .panel-collapse').collapse('toggle');
});
and this is the JSFiddle example http://jsfiddle.net/gtowle/Vq6gt/1/
I needed to have collapse/expand links to click. Here is my solution:
<a id="acollapse" href="javascript:jQuery('div .panel-collapse').collapse('hide'); jQuery('#acollapse').hide();jQuery('#aexpand').show();">Collapse All</a>';
<a id="aexpand" href="javascript:jQuery('div .panel-collapse').collapse('show'); jQuery('#aexpand').hide(); jQuery('#acollapse').show();" style="display: none;">Expand All</a>