"Checkbox/Radio - CSS Only"
Bootstrap 3.2.0 Snippet by effa

<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <h1 class="text-center">Checkbox/Radio - CSS Only</h1> </div> <div class="container"> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-xs btn-default"> <input type="checkbox" autocomplete="off"> <span class="glyphicon glyphicon-ok"></span> </label> </div> </div>
.btn span.glyphicon { opacity: 0; } .btn.active span.glyphicon { color: #1e7cb2; opacity: 1; }

Related: See More


Questions / Comments: