DataTables

DataTables Examples

HTML

<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables.css">
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script>
<script src="//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js"></script>
<table class="dataTable" id="example">
    <thead>
        <tr>
            <th>0th</th>
            <th>1st</th>
        </tr>
    </thead>
</table>

JavaScript

$(document).ready(function() {
  $('#example').dataTable({
    "paging": false,
    "sDom": "t",
    "sScrollY": 200,
    "oScroller": {
       "rowHeight": 20,
    },
    "ajax": {
       url: '/echo/json/',
       type: 'POST'
    },
    "serverSide": true,
  });
})