I have a bootstrap accordion. I customized it to add the plus and minus icons. I’m trying to figure out how to start with the first panel expanded and have the minus icon.
I tried adding the “in” class to
<div id="collapseOne" class="panel-collapse collapse " role="tabpanel" aria-labelledby="headingOne">
but then that panel always has the minus sign.
I’m trying to get it so that when the page loads only the first panel is expanded and has a minus sign. Then when another panel is clicked the first closes and turns into a plus sign like the other collapsed panels.
here is a codepen