My datatable is filled with inputs from the server side but unfortunately my search box is not filtering my data. When i search on page 1, it doesn't filter. When i move to page 2 of the pagination and start searching in the box, it automatically moves me to page 1 again.
There's no error showing in the console as well to give me a hint. What could be causing this please?
PS: I am using yajra package datatables.
JS Scripts
$(document).ready(function() {
oTable = $('#users-table').DataTable({
"processing": true,
"serverSide": true,
"bProcessing":false,
"bSort":false,
"ajax": "{{ route('datatable.getcategories') }}",
"columns": [
{data: 'check', name: 'check'},
{data: 'name', name: 'name'},
// {data: 'description', name: 'description'},
{data: 'count', name: 'count'},
{data: 'action', name: 'action'}
],
language: { search: "" },
});
$('.dataTables_filter input[type="search"]')
.attr('placeholder',' Search...');
});
DataTable? Above 1.10.x version will supportsearch()method.