First, add the javascript to your page. JQuery must be loaded first.
<script type="text/javascript" src="jquery.ztables.min.js"></script>
Don't forget the stylesheet.
<link rel="stylesheet" type="text/css" href="jquery.ztable.min.css"></>
And finally, call this on your table.
$(document).ready(function(){
ztable = $('#mytable').ZTable();
});
Your table only need include the thead and tbody tags. You can define your column headers within the table or they can be defined along side your table data in JSON format. More on that later.
ZTables has several options you can define, most of which are turned on by default.
All controls have user accessibility, allowing you to hide the default control and implement your own front-end.