Search/Filter and Form Submit

Search/Filter and Form Submit

DieterKDieterK Posts: 1Questions: 1Answers: 0

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

Answers

  • adabieadabie Posts: 2Questions: 0Answers: 0

    I'm having the same issue! Is there a way to maybe clear the search before the submit?

  • adabieadabie Posts: 2Questions: 0Answers: 0

    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('');

This discussion has been closed.