"Inline Multi checkbox for weekdays "
Bootstrap 4.0.0 Snippet by webui

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.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 ----------> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> <div class="text-center"> <h3 class="col-md-12">Alternative one</h3> <div class="btn-group " data-toggle="buttons"> <label class="btn btn-primary active "> <input type="checkbox" checked>Mon <span class="fa fa-check"></span> </label> <label class="btn btn-primary" > <input type="checkbox"> Tue <span class="fa fa-check"></span> </label> <label class="btn btn-primary"> <input type="checkbox"> Wed <span class="fa fa-check"></span> </label> <label class="btn btn-primary"> <input type="checkbox"> Thur <span class="fa fa-check"></span> </label> <label class="btn btn-primary"> <input type="checkbox"> Fri <span class="fa fa-check"></span> </label> </div> </div> <div class="container"> <div class="well well-sm text-center my-5"> <h3>Alternative two</h3> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-success active"> <input type="checkbox" autocomplete="off" checked>Mon <span class="fa fa-check "></span> </label> <label class="btn btn-primary"> <input type="checkbox" autocomplete="off">Tue <span class="fa fa-check"></span> </label> <label class="btn btn-info"> <input type="checkbox" autocomplete="off">Wed <span class="fa fa-check"></span> </label> <label class="btn btn-danger"> <input type="checkbox" autocomplete="off">Thur <span class="fa fa-check"></span> </label> <label class="btn btn-warning"> <input type="checkbox" autocomplete="off">Fri <span class="fa fa-check"></span> </label> </div> </div> </div>
.btn span.fa-check { opacity: 0; } .btn.active span.fa-check { opacity: 1; }

Related: See More


Questions / Comments: