Multi value search not working in server side.
Multi value search not working in server side.

var data=[];
data.push("search_value-1" ? '^' + $.fn.dataTable.util.escapeRegex("search_value-1") + '$' : null);
data.push("search_value-2" ? '^' + $.fn.dataTable.util.escapeRegex("search_value-2") + '$' : null);
//join array into string with regex or (|)
var val = data.join('|');
$('#example').DataTable().column(1).search(val ? val : '', true, false).draw();
This code is work in every datatable except server-side+ajax+process.
If is use this :
$('#example').DataTable().column(1).search("search_value-1").draw();
it's will work in server side which i tried. but multi search is not working what should i do?
(I using ssp.class.php, simple method)
This discussion has been closed.
Answers
That's not supporting the supplied scripts, there are a few threads discussing this, such as this one. However, there are also a few threads that post solutions, such as this one.
Hope that helps,
Colin