Reset filtered data in DataTables

前端 未结 1 792
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 11:01

I have a Datatable where the data is retrieved using AJAX. I then have two search functions that filter the data. The search functions work fine once working with unfiltered

相关标签:
1条回答
  • 2021-01-07 11:47

    As said by davidkonrad

    $.fn.dataTable.ext.search.pop()
    

    worked for me. I just added it to the top of each method in order to clear the filter before applying a new one.

    0 讨论(0)
提交回复
热议问题