Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Count cells with specific value and row class

$
0
0

Hi all,

I am trying to find a way to count the number of cells with a particular value for selected rows (or cells with a particular class), Is this possible? Something like:

dt.rows( '.selected' )
.data()
.indexOf('cellValue')
.count()

Or where the row has a class of selected and the cell has a class of bg-success

dt.rows( '.selected' )
.cells('.bg-success')
.count()

Thanks


Viewing all articles
Browse latest Browse all 2364

Trending Articles