Sign inSign up

jQuery Automatic Fixed Table Header Plugin freezeheader.js

Add-ons
2026-07-26 03:27 4 views • 0 downloads 110.5KB
jQuery Automatic Fixed Table Header Plugin freezeheader.js

Quick Tutorial

This is a simple jQuery plugin for freezing the header row of an HTML table.

Include the JS file from the archive and the jQuery file.

1
<script src="js/jquery.freezeheader.js"></script>

Usage

Create a table with a fixed header at the top of the browser:

1
2
3
$(document).ready(function () {
$("#tableid").freezeHeader();
})

Create a table with a fixed header and a scrollbar:

1
2
3
$(document).ready(function () {
$("#tableid").freezeHeader({ 'height': '300px' });
})