multiple filters on same column
multiple filters on same column
rfitzwater
Posts: 57Questions: 5Answers: 1
Is it possible to have multiple filters on the same column? For example, if a table has a column or browsers, and I had the individual column search enabled, I would like to enter something like (Safari AND Firefox) or (Safari, Firefox). Currently, you can only enter one search criteria for each column to my knowledge.
Thanks,
-Rhon
Thanks,
-Rhon
This discussion has been closed.
Replies
http://www.datatables.net/release-datatables/examples/api/regex.html
try putting "firefox|netscape" into column 2 filter and enable "Treat as regex"
you don't have to have your users use the "|" char. you could take their input, then treat white space as a breaking point, replace with "|" chars, for instance.
[code]
mysearchstring = mysearchstring.replace(/\s+/g, "|"); // replace white space with "|" char
[/code]