"Multi Select Tiled Layout"
Bootstrap 3.3.0 Snippet by sandeep0402

<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"> <div class="row"> <div class="page-header"> <div class = "panel panel-default"> <div class = "panel-heading"> <h3 class = "panel-title"> Panel With title </h3> </div> <div class = "panel-body"> Panel content </div> </div> <h1>Bootstrap <small>An intuitive front-end framework</small></h1> </div> <h2>Multiple Select with Search Option - Tiled Layout </h2> <div class="form-group"> <div class="searchable-container"> <div class="items "> <div class="info-block block-info clearfix"> <div class="square-box pull-left"> <span class="glyphicon glyphicon-tags glyphicon-lg"></span> </div> <div data-toggle="buttons" class="btn-group bizmoduleselect"> <label class="btn btn-default "> <div class="bizcontent"> <input type="checkbox" name="var_id[]" autocomplete="off" value=""> <h5><span class="pull-left glyphicon glyphicon-ok glyphicon-lg"></span> Coffee .searchable-container .btn.active span.glyphicon {</h5> </div> </label> </div> </div> </div> <div class="items "> <div class="info-block block-info clearfix"> <div class="square-box pull-left"> <span class="glyphicon glyphicon-tags glyphicon-lg"></span> </div> <div data-toggle="buttons" class="btn-group bizmoduleselect"> <label class="btn btn-default"> <div class="bizcontent"> <input type="checkbox" name="var_id[]" autocomplete="off" value=""> <span class="glyphicon glyphicon-ok glyphicon-lg"></span> <h5>Tea</h5> </div> </label> </div> </div> </div> <div class="items "> <div class="info-block block-info clearfix"> <div class="square-box pull-left"> <span class="glyphicon glyphicon-tags glyphicon-lg"></span> </div> <div data-toggle="buttons" class="btn-group bizmoduleselect"> <label class="btn btn-default"> <div class="bizcontent"> <input type="checkbox" name="var_id[]" autocomplete="off" value=""> <span class="glyphicon glyphicon-ok glyphicon-lg"></span> <h5>Fruit Juice</h5> </div> </label> </div> </div> </div> </div> </div> </div> </div>
.searchable-container{margin:20px 0 0 0} .searchable-container label.btn-default.active{background-color:green;color:#FFF} .searchable-container label.btn-default{background-color:#ff2ff;color:black;width:90%;border-radius:25px;border:1px solid #efefef;margin:5px; box-shadow:5px 8px 8px 0 #ccc;} .searchable-container label .bizcontent{width:100%;} .searchable-container .btn-group{width:90%} .searchable-container .btn span.glyphicon{ opacity: 0; } .searchable-container .btn.active span.glyphicon { opacity: 1; }
$(function() { $('#search').on('keyup', function() { var pattern = $(this).val(); $('.searchable-container .items').hide(); $('.searchable-container .items').filter(function() { return $(this).text().match(new RegExp(pattern, 'i')); }).show(); }); });

Related: See More


Questions / Comments: