Recover filter values
Recover filter values

I would like to save all filter values from both columns and the general one. My goal is to save the filters of the datatable to be able to do background processes with php according to the selected criteria. How can I get the filter values in tfoot from the DataTable object?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can use
search()
,column().search()
and/orcolumns().search()
to get the current search terms. The inputs you place in the footer are independent of Datatables and Datatables doesn't know anything about them not has API's to access them. If you want the values from the inputs you can use standard Javascript or jQuery techniques to retrieve them.Kevin
Thanks Kevin for your explanation!!
So as I understand, If I need to send the column name and the search value, a code like this one is "more or less" correct. What do you think about it?