Search/Filter and Form Submit
Search/Filter and Form Submit
DieterK
Posts: 1Questions: 1Answers: 0
in DataTables
Hello,
i have a question about DataTables and Search.
At the moment i use a standard
<
table> with many entries and i'm displaying this Table with DataTables. This works pefectly.
But i have a problem with the Search-Feature. If i filter the Table and SUBMIT the FORM via a Submit-Button, only the filtered entries are submitted. Is there any way to submit everything?
Thank you very much
This discussion has been closed.
Answers
I'm having the same issue! Is there a way to maybe clear the search before the submit?
It works to clear the search before doing the submit. The last line clears the search box text.
var table = $('#tableName').DataTable();
table.search('').draw();
$('.dataTables_filter input').val('');