I am making a Rails app, and am trying to achieve a particular functionality relating to Twitter\'s Bootstrap collapse. Bear with me as I explain it.
I currently hav
If you don't want to change your markup, this function does the trick:
jQuery('button').click( function(e) { jQuery('.collapse').collapse('hide'); });
Whenever a BUTTON is clicked, all sections become collapsed. Then bootstrap opens the one you selected.