Within my accordion setup, the initial panel showcases a selection of icons. Upon choosing one of these icons, it triggers the display of one of three panels in place of the second accordion panel, based on the selected icon. The issue seems to be rooted in the JavaScript implementation and the organization within the div.panel class.
HTML
<button class="accordion">
<h2 class="float-left">1.</h2>
<h2 class="text-center">Screen Type</h2></button>
<div class="panel text-center" id="type_panel">
<!-- Icon selection labels here -->
</div>
<form action="" id="tallyForm" onsubmit="return false;">
<button class="accordion">
<h2 class="float-left">2.</h2>
<h2 class="text-center">Model</h2></button>
<div class="panel" id="default_panel">
<!-- Model selection options here -->
</div>
<div class="panel invisible" id="laptop_panel">
<!-- Laptop model choices here -->
</div>
<div class="panel invisible" id="tablet_panel">
<!-- Tablet model choices here -->
</div>
<div class="panel invisible" id="phone_panel">
<!-- Phone model options here -->
</div>
CSS
JS
JSFIDDLE