Everyone knows about HTML tables but what if we want to improve the functionality of the html table such as if we want to make them dynamic or if we want add pagination to Table or if we want to add filters to the Columns of the tables or we want to add a search field for the table. To do all this things we have to use data Tables in our working. DataTables is the jquery plugin that we have to use with our HTML tables that means we don't have to make any changes in our HTML table instead we just have to use some simple jquery code in our page.
You can Download Any version of datatables According to your needs HERE
HOW TO USE DATATABLES:
Step 1 : Download And Extract All the Files.
Step 2 : Import css and JS Files in you HTML Page.
Step 3 : Now Give your HTML table ID e.g. <table id= "example">
Step 4: Now We just have to Initialize DataTable Just write the following code to initialze dataTables
The package you have previously downloaded Also contains a Lot of Examples of different Features. So you can Use this Jquery Plugin To modify your HTML tables. It will Provide You a range selector , A jquery Key To Key Search BoX ( It will Search Your Table As you are typing in Search Box ), Sortable Columns Pagination etc in the default Initialization. DataTables Also Provides Many More Features Like Column Filter etc.
Thankyou
You can Download Any version of datatables According to your needs HERE
HOW TO USE DATATABLES:
Step 1 : Download And Extract All the Files.
Step 2 : Import css and JS Files in you HTML Page.
Step 3 : Now Give your HTML table ID e.g. <table id= "example">
Step 4: Now We just have to Initialize DataTable Just write the following code to initialze dataTables
$(document).ready(function(){ $('#example').dataTable(); });And You Are Done. Your HTML Tables will Become
The package you have previously downloaded Also contains a Lot of Examples of different Features. So you can Use this Jquery Plugin To modify your HTML tables. It will Provide You a range selector , A jquery Key To Key Search BoX ( It will Search Your Table As you are typing in Search Box ), Sortable Columns Pagination etc in the default Initialization. DataTables Also Provides Many More Features Like Column Filter etc.
Thankyou
Comments
Post a Comment
your Comment is sent for moderation, Thankyou