Using Bootstrap 2.3.2 I have an accordion with a single panel that is open when the page is loaded.
Bootstrap 4 accordion:
$(window).bind('resize load', function() { if ($(this).width() < 767) { $('.collapse').addClass('show'); } else { $('.collapse').removeClass('show'); } });