"Filtered Attendees List"
Bootstrap 3.1.0 Snippet by Osom25

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.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">
<h2>Filtered List</h2>
<div class="col-lg-12">
<input type="search" class="form-control" id="input-search" placeholder="Search Attendees..." >
</div>
<div class="searchable-container">
<div class="items col-xs-12 col-sm-6 col-md-6 col-lg-6 clearfix">
<div class="info-block block-info clearfix">
<div class="square-box pull-left">
<span class="glyphicon glyphicon-user glyphicon-lg"></span>
</div>
<h5>Company Name</h5>
<h4>Name: Tyreese Burn</h4>
<p>Title: Manager</p>
<span>Phone: 555-555-5555</span>
<span>Email: sample@company.com</span>
</div>
</div>
<div class="items col-xs-12 col-sm-12 col-md-6 col-lg-6 clearfix">
<div class="info-block block-info clearfix">
<div class="square-box pull-left">
<span class="glyphicon glyphicon-user glyphicon-lg"></span>
</div>
<h5>Company Name</h5>
<h4>Name: Brenda Tree</h4>
<p>Title: Manager</p>
<span>Phone: 555-555-5555</span>
<span>Email: sample@company.com</span>
</div>
</div>
<div class="items col-xs-12 col-sm-12 col-md-6 col-lg-6">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.glyphicon-lg
{
font-size:4em
}
.info-block
{
border-right:5px solid #E6E6E6;margin-bottom:25px
}
.info-block .square-box
{
width:100px;min-height:110px;margin-right:22px;text-align:center!important;background-color:#676767;padding:20px 0
}
.info-block.block-info
{
border-color:#20819e
}
.info-block.block-info .square-box
{
background-color:#20819e;color:#FFF
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
$(function() {
$('#input-search').on('keyup', function() {
var rex = new RegExp($(this).val(), 'i');
$('.searchable-container .items').hide();
$('.searchable-container .items').filter(function() {
return rex.test($(this).text());
}).show();
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments:

Hi thanks for your amazing snippet but if you can fix the responsive it will be awesome :)

Hasan Zahran () - 9 years ago - Reply 1


can you add pagination ?

Picassoo () - 7 years ago - Reply 0


How can I use the pagination?

tomgomes () - 9 years ago - Reply 0