wuschelino22
2 months ago

Accordion Problem

Posted 2 months ago by wuschelino22

Hello, i have a problem with a Bootstrap Accordion. I want that i can click an the hole Button in the Accordion then it should open it. At the moment in only opens the accordion when i click on the categoryname. What i have to change ? Thank you very much. Here is my Code:

<!-- Accordion  -->
<div class="accordion" id="accordionExample" >
@foreach ($categories->sortBy('name') as $categorie)

<div class="cars">
    <div class="card-header" id="headingSix" role="tablist" aria-multiselectable="true" >
      <h2 class="mb-0">
        <a class="btn  collapsed"   data-toggle="collapse" data-target="#collapse{{$categorie->id}}"  aria-expanded="true" 
          aria-controls="collapse"  style="color: black">
        {{ $categorie->name}}
        </a>
</div>

    <div id="collapse{{$categorie->id}}"  class="collapse" aria-labelledby="heading{{$categorie->id}}" data-parent="#accordionExample">
      <div class="card-body">

Please sign in or create an account to participate in this conversation.