I have added a datatable with an AJAX call in my application. Its working fine, but I need to add some custom filters.
Here is my code
<table id="mydatatable">
<thead>
<tr>
<td>Name</td>
<td>Age</td>
<td>Email</td>
</tr>
</thead>
</table>
<script>
$("#mydatatable").DataTable({
"ajax": {
url: "ajax.php?action=datatable",
"type": 'POST',
},
"order": [[2, "desc"]],
});
</script>
now I have added custom select box for age >15, >25, >35 on that select box change I need to make AJAX call and refresh the datatable