This time I will share jQuery Plugin and tutorial about Flexible Data Table Plugin With jQuery And PHP – OpenDataTable, hope it will help you in programming stack.
OpenDataTable is a jQuery plugin used to render flexible, dynamic, sortable, searchable, pagintable, editable data tables from PHP & MySQL data sources.
How to use it:
1. Insert jQuery library together with jQuery OpenDataTable plugin’s JavaScript and stylesheet into the the document.
1 |
< link rel = "stylesheet" href = "style.css" > |
2 |
< script src = "//code.jquery.com/jquery.min.js" ></ script > |
3 |
< script src = "OpenDataTable.js" ></ script > |
2. Create an empty table element for the OpenDataTable.
01 |
< table class = "OpenDataTable" > |
3. Initialize the OpenDataTable plugin and specify the data source you want to use.
1 |
$( ".OpenDataTable" ).OpenDataTable({ |
4. More configuration options.
01 |
$( ".OpenDataTable" ).OpenDataTable({ |
16 |
hide_no_of_rec: false , |
19 |
callback: function () {} |
This awesome jQuery plugin is developed by opendatatable. For more Advanced Usages, please check the demo page or visit the official website.