Basic Initialization
DataTables is very simple to use as a jQuery plug-in with a huge range of customizable option.
1. Initialize the plugin by referencing the necessary files:
<script src="datatables.min.js"></script>
<link rel="stylesheet" type="text/css" href="datatables.min.css">
Note! Add datatable extensions css / js files as per requirements.
2. Call the DataTable-function after the page has loaded
$("#datatable").DataTable();
Refer following links for detailed documentation, configuration options, methods and examples:
Type | URL |
---|---|
Plugin Link | https://datatables.net/ |