How to access current search values for columns?
How to access current search values for columns?

Minimal test case here: http://live.datatables.net/vafopuri/1/edit
I would like to have one button instead of two, which chooses one of two search terms after checking the currently applied search term on this column. I don't know how to access this currently applied term.
Any help would be appreciated!
Cheers,
Michael
This discussion has been closed.
Replies
You can use
table.column(2).search()
to get the current search term for the column. Checkout thecolumn().search()
docs for more info.Kevin
Thanks that worked perfectly
http://live.datatables.net/vafopuri/4/edit