-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatatable1.html
executable file
·49 lines (35 loc) · 1.02 KB
/
datatable1.html
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
38
39
40
41
42
43
44
45
46
47
48
49
---
layout: default
title: Courses
permalink: /datatable1/
---
<!-- jQuery library -->
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<!-- DataTables JS and CSS -->
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.js"></script>
<div class="table-responsive">
<table id="myDataTable" class="display">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
<th>Column 3</th>
<!-- More columns as needed -->
</tr>
</thead>
<tbody>
<!-- Table rows go here -->
</tbody>
</table>
</div>
<script>
$(document).ready( function () {
const myTable = $('#myDataTable').DataTable({
// DataTable options
"paging": true,
"searching": true,
// other options
});
});
</script>