Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/travishorn/jquery-tabletotal

Automatically add total row and/or total column to table.
https://github.com/travishorn/jquery-tabletotal

Last synced: 28 days ago
JSON representation

Automatically add total row and/or total column to table.

Awesome Lists containing this project

README

        

# tableTotal jquery Plugin

Automatically add total row and/or total column to table.

## Installation

1. Include [jQuery](https://jquery.com/download/) on the page.
2. Include `jquery.tableTotal.js` on the page.

## Usage

### HTML





Q1
Q2




North
54
14


South
24
39


### JS

$('#totalMe').tableTotal();

## Options

### totalCol

Default: `true`

If `true`, adds a column to your table with row totals.

### totalRow

Default: `true`

If `true`, adds a row to your table with column totals.

### bold

Default: `true`

If `true`, makes all total numbers bold.

## Live Example

You can find a live example of this plugin in [this pen](https://codepen.io/travishorn/pen/Mvyyzz).