https://demo.hisune.com/jquery.fixed-top/
$(document).ready(function(){
$('#test').fixPosition({top: 2, index: 5});
});
If you want to fixed table header, please make sure your table has a tfooter!
Code by Hisune(http://hisune.com), for more detail, go to http://www.hisune.com/view/5/scroll-fixed-top-jquery-plugin