"Bootstrap 3.7 Responsive Datatable (Server Side)"
Bootstrap 3.3.0 Snippet by ashifulcse

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="//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="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!-- Data table plugin CSS-->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/responsive/2.1.1/css/responsive.bootstrap.min.css" />
<div class="container">
<div class="row mb-4">
<h2 class="text-center">Bootstrap 3.7 styling for Responsive Datatable (Server Side)</h2>
</div>
<div class="row">
<div class="col-md-12">
<table id="table_data" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
<thead>
<tr>
<th> Name </th>
<th> Position </th>
<th> Office </th>
<th> Code </th>
<th> Start date </th>
<th> Salary </th>
<th> Action </th>
</tr>
</thead>
</table>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
var data = [
{
"name": "Ashiful Islam",
"position": "Web Developer",
"salary": "$520,100",
"start_date": "2016/04/25",
"office": "Bangladesh",
"extn": "6250"
},
{
"name": "Shakil Ahamad",
"position": "Accountant",
"salary": "$270,750",
"start_date": "2010/05/22",
"office": "Rajshahi",
"extn": "1234"
},
{
"name": "Nadim Abrar Hossain",
"position": "Junior Technical Author",
"salary": "$96,000",
"start_date": "2009/01/12",
"office": "London",
"extn": "1420"
},
{
"name": "Alsafe Bhiya",
"position": "Senior Javascript Developer",
"salary": "$433,060",
"start_date": "2012/03/29",
"office": "India",
"extn": "6224"
},
{
"name": "Zillu Rahaman",
"position": "Software Developer",
"salary": "$1620,700",
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: