jQuery.FilterTable Ignore a Class Sample

← More samples

Ignore a Class

This is a sample of the jQuery.FilterTable plugin using the ignoreClass option.

In this sample, cells with the no-filter class are ignored—not filtered. Also in this sample, the ignored cells are styled via CSS to help identify that they are ignored.

For example:

Fruit Mesocarp Color(s) When Ripe
AvocadoGreen
BananaYellow
Dragon fruitPink, White
GuavaPink
Lilikoʻi (Passion fruit)Orange, Yellow
LycheeWhite
MangoOrange, Yellow
PapayaOrange, Red, Yellow
PineappleWhite, Yellow
Star fruitGreen, White, Yellow

Code

$('table').filterTable({
    ignoreClass: 'no-filter'
});