Datatables Search(multiple values for single column) not working if the values contain space character

时间:2018-01-23 19:29:04

标签: jquery datatable datatables

I am implementing a web application using datatables(for table view). where I need to add search feature against some columns. Now user may want to look for multiple values in a column at a same time. For example if the column name is place. The user may ask for place with value tokyo and london at a same time.

To implement this i am referring https://www.datatables.net/release-datatables/examples/api/regex.html

It is working fine if the search string does not contain space in it. for Eg. tokyo|london is giving proper result set as they do not contain space. but when i am searching with tokyo|london|San Francisco. It is not giving proper result as San Francisco contains space in it.

How to resolve the issue?

0 个答案:

没有答案