sticky
sticky copied to clipboard
Make sticky works with table headers
This patch is for proper positioning table header on sticky state (position: fixed) Please take into concideration that you should apply sticky like this:
HTML:
<table>
<thead>
<tr class="sticky">
<th>Id</th>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Test</td>
<td>1</td>
</tr>
</tbody>
</table>
JS:
$('.sticky').sticky();
up
Hi I'm currently using this code here(table.zip) to create a table from an XML file. I added the class to the
Here's the HTML code:
<div id="tableContainer">
<table id="pruebatabla" class="fht-table"> </table>
</div>
otherwise