search filter with percentage symbol
search filter with percentage symbol

I am not a geek,
I use mysql simple database with one tabe
and /! DataTables 1.10.4
and i tested with
/ jQuery JavaScript Library v3.3.1
or
/*! jQuery v1.11.1
I have the same issue
I don't understand why i can't write da ba to search in column 1 = dany marcus + column 2 = backer
I can only search on one column by ny or ny%ma
My searching is only possible on one column.... and i need to add % beetwen string
Thanks for your help
This question has an accepted answers - jump to answer
Answers
By default Datatables search uses
and
notor
for searching between the columns. You can customize the search by creating a search function as shown in this example:https://datatables.net/examples/api/regex.html
You would change the search mode to regex and use the regex
or
operator of|
. To see how it works check theTreat as regex
and uncheck theUse smart search
options for theGlobal Search
input. Then in theGlobal Search
typeair
and you will see one response with the nameAiri Satou
. Follow that with|lon
resulting inair|lon
in theGlobal Search
. In addition toAiri
you will see all of the rows that haveLondon
.Kevin