Or you can use simple CSS trick as follows:
/* prevent the active panel from collapsing */ .panel-group [aria-expanded=true]{ /* http://caniuse.com/#feat=pointer-events Works for MOST modern browsers. (- Opera Mobile) */ pointer-events: none; } must have proper tags on the inactive panel links
aria-expanded="false"