reenadak

make any table a datatable.

Mar 27th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.41 KB | None | 0 0
  1. Make anytable, datatable in a snap, just add following code in header.
  2.  
  3. <link rel="stylesheet" href="http://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
  4.         <script src="http://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
  5.         <script>
  6. $(document).ready(function(){
  7.     $('#mdTable').DataTable();
  8. });
  9. </script>
  10.  
  11. and in table, match id
  12. <table id="mdTable" class="table table-hover">
Advertisement
Add Comment
Please, Sign In to add comment