For my application, I am using JQuery datatable with materialize frame work. My table is having the following columns:
1.Name 2.Position 3.Office 4.Age 5.Date and 6.Salary
In that, I am dynamically creating a multi select filter for 'Office' and 'Age' column from the table response. I have tried my example in the follwing JSFiddle link.
JSFiddleJSFiddle
But filtering is only working for single option and for multi select filtering it is not working. Also there is no relationship between 'Office' and 'Age' filters, both are working individually.
How to fix this?
解决方案
Try to separate the event of any change to select.
Try this:
$(document).ready(function (){
var table = $('#example').DataTable({
dom: 'lrtip',
initComplete: function ()