"Image Checkbox(Check/Uncheck) version"
Bootstrap 3.3.0 Snippet by sodia

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.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 col-md-6"> <div class="row"> <form method="get"> <div class="form-group"> <div class="col-md-3"><label class="btn btn-primary"><img src="https://cdn1.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/apps/kcron.png" alt="..." class="img-thumbnail img-check check"><input type="checkbox" name="chk1" id="item4" value="val1" class="hidden" autocomplete="off"></label></div> <div class="col-md-3"><label class="btn btn-primary"><img src="https://cdn1.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/apps/kcron.png" alt="..." class="img-thumbnail img-check"><input type="checkbox" name="chk2" id="item4" value="val2" class="hidden" autocomplete="off"></label></div> <div class="col-md-3"><label class="btn btn-primary"><img src="https://cdn1.iconfinder.com/data/icons/DarkGlass_Reworked/128x128/apps/kcron.png" alt="..." class="img-thumbnail img-check"><input type="checkbox" name="chk3" id="item4" value="val3" class="hidden" autocomplete="off"></label></div> <div></div> </div> </form> </div> </div> </body> </html>
.check { opacity:0.5; color:#42babf; } .btn-primary{ color: #fff; background-color:#3dbd35; border-color: #3dbd35; } .btn-primary:hover{ color: #fff; background-color:#3dbd35; border-color: #3dbd35; }
$(document).ready(function(e){ $(".img-check").click(function(){ $(".img-check").not(this).removeClass('check') $(this).addClass('check') }); });

Related: See More


Questions / Comments: