Bootstrap Tutorial - Toggle small well text








The following code shows how to toggle small well text.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css">
<!--from   w  w w. j a v a 2s  .  c o m-->
</head>
<body>
  <div class="accordion-heading">
    <a class="accordion-toggle" data-toggle="collapse"
      data-parent="#accordion2" href="#collapseOne">Open!</a>
  </div>
  <div id="collapseOne" class="accordion-body collapse">
    <div class="span6">
      <div class="well well-small">
        <div class="accordion-toggle">...some text...</div>
      </div>
    </div>
    <div class="span2"></div>
  </div>
</body>
</html>

Click to view the demo