
<body>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
  <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
  <div class="panel-group" id="myaccordion">
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title" data-target="#panel-1" data-toggle="collapse" data-parent="#myaccordion">first</h3>
      </div>
      <div class="panel-collapse collapse" id="panel-1">
        <div class="panel-body">
          <p>Lorem ipsum dolor sit amet.</p>
        </div>
      </div>
    </div>
    
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title" data-target="#panel-2" data-toggle="collapse" data-parent="#myaccordion">second</h3>
      </div>
      <div class="panel-collapse collapse" id="panel-2">
        <div class="panel-body">
          <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Distinctio, unde doloremque tempore ratione pariatur molestiae voluptas vero accusantium expedita! Velit.</p>
        </div>
      </div>
    </div>
    
    <div class="panel panel-primary">
      <div class="panel-heading">
        <h3 class="panel-title" data-target="#panel-3" data-toggle="collapse" data-parent="#myaccordion">third</h3>
      </div>
      <div class="panel-collapse collapse" id="panel-3">
        <div class="panel-body">
          <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.</p>
        </div>
      </div>
    </div>
    
    
  </div>
</body>
