search two words or more with OR
search two words or more with OR
kbrom
Posts: 2Questions: 1Answers: 0
Hello. I have a need to search for two words using the DataTables.search() API. It looks like it is working on the following demo site http://datatables.net/examples/api/regex.html. but I couldn't get it to work. I am only able to search one word. Please help
Bellow is the function i am trying to use to do the search.
function filterColumn ( ) {
$('#gsat').DataTable().search(
'SS8|ACME',
true,
false
).draw();
}
This discussion has been closed.
Answers
I've done this feature already and mocked it up again in JSFiddle and it does work fine. Is there anything else in your initialization like you are only sorting on particular columns, switched to case sensitive or your are using serverSide?
Thank you Glenderson for your reply. I have server side processing. If possible could you share with me the JSFIddle if you still have it available or think it would be helpful?