Trying to only display exact matches to the search term entered in the search bar.
For instance, I have a search bar that filters by ID#. I want only records that m
If you want the exact match from the beginning you can try this code,
var table = $('#myTable').DataTable() $('#filterrow > th:nth-child(2) > input').on( 'keyup change', function () { table .column( $(this).parent().index()+':visible' ) .search( "^" + this.value, true, false, true ) .draw(); } );