DEV Community

Kevin Davis SN5
Kevin Davis SN5

Posted on

Bootstrap Accordion - Text still showing after last accordion closed

Here is the situation, I have set up a bootstrap accordion with the following code:

    <?php $x = 0; ?>
     <div class="accordion" id="accordionExample">
        <?php foreach ($testFaqs as $faqs) {   ?>
           <div class="card">
              <div class="card-header" id="heading-<?php echo $x; ?>">
                <h2 class="mb-0">
                  <button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapse-<?php echo $x; ?>" aria-expanded="true"

Top comments (0)