I have a Datatable that loads with new data every time the user changes the option from a dropdown list for which I want to keep the same filter even even if the table content changes. I've tried to get the current value from the search input by using:
$('div.dataTables_filter input').val()
suggested in https://datatables.net/forums/discussion/242/getting-filter-text
or
table = $("#datatable-buttons").DataTable({...});
table.fnSettings().oPreviousSearch;
but without any success :( Is there a way to get the filter input text?