Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35271

Understanding filtering in DataTables 1.10: search two selected columns with one search?

$
0
0

I use external buttons to trigger hardcoded filters/searches on click like these two: Button one triggers table.column(14).search('1').draw(); Button two triggers table.column(15).search('1').draw();

This is working fine. As I understand it, the two searches could be chained like this: table.column(14).search('1').column(15).search('1').draw(); This would perform the two searches in sequence, first in column 14 and then in column 15, the result being all rows with a 1 in column 14 AND in column 15.

Is there a way to write such a filter for the same content in the cells in either column 14 OR column 15?


Viewing all articles
Browse latest Browse all 35271

Trending Articles