jQuery Row Count

Last modified: 06 Feb 2017

Automatically prepends a new column and adds row numbers on an existing table.

Try examples:

Example 1:

Names Daryl David Davy Enable row count on example #1



Example 2:

#   Names
5.  Daryl
6.  David
7.  Davy Remove row on example #2


$(“#rowCountTable”).rowCount({startAt:5, column:2});

There are only 2 options:

startAt - lets you start the next count at a specific number column - lets you display the row count at a specific column It also creates 2 css classes:

rowCount - for the column headers rowNumber - for the cells The plugin can be applied as many times on a single table - it goes through all the table rows and generates the row numbers everytime it is executed.

This plugin is very minimal, as it already suits my needs.