Bootstrap Tutorial - Create Plus and minux button








The following code shows how to create Plus and minux button.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-git2.js'></script>
<script type='text/javascript'
  src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.1.0/bootstrap.min.js"></script>
<script type='text/javascript'
  src="http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<style type='text/css'>
@import url('http://getbootstrap.com/dist/css/bootstrap.css');
@import<!--  w  w w .j a v a 2s.c o  m-->
  url('http://eternicode.github.io/bootstrap-datepicker/bootstrap-datepicker/css/datepicker.css')
  ;
</style>
<script type='text/javascript'>
$(window).load(function(){
    $('.input-daterange').datepicker({});
});
</script>
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="col-md-7">
        <div class="panel panel-primary">
          <div class="panel-heading clearfix">
            <h3 class="panel-title pull-left">Chart panel</h3>
            <div class="btn-group btn-group-xs pull-right">
              <a href="#" class="btn btn-success"><span
                class="glyphicon glyphicon-plus"></span></a> 
              <a href="#"
                class="btn btn-danger"><span
                class="glyphicon glyphicon-minus"></span></a>
            </div>
            <div class="clearfix"></div>
          </div>
          <div class="panel-body">Panel content</div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>

Click to view the demo