Hello everybody
i have this code that should filter a table
if I click on the Alex checkbox nothing happens
but if I click on Alex 2 the filter will be executed
the problem is that the code is not doing an exact search
where is the error in the code?
<script>
// start filter checkbox 2 di 2
$('input:checkbox').on('change', function () {
//build a regex filter string with an or(|) condition
//build a filter string with an or(|) condition
var credit = $('input:checkbox[name="cred"]:checked').map(function() {
return this.value;
}).get().join('|');
//now filter in column 2, with no regex, no smart filtering, not case sensitive
table.column(4).search(credit, true, false, false).draw(false);
//
</script>