A jQuery plugin to make your table columns resizable
- Works with two rows in
<thead>
tag. Resizing is applied only to the first header row.
- Resize columns in table
- Super Light: just 0.9kb
<table id="tbResizable">
<thead>
<tr>
<th>col 1</th>
<th>col 2</th>
...
...
</tr>
</thead>
<tbody>
<tr>
<td>Content</td>
<td>Conent</td>
...
...
</tr>
</tbody>
</table>
Invoke plugin on the above table
$('#tbResizable').resizableColumns();
- Resizable handlers are
append()
to all the tableth
s. - Make sure your put your headers inside the
<thead>
tag. - Adds 'resizer' class to the resizing handlers and 'resizing' class to the
th
that is currently being resized.