Search by pattern like "(Sec 1)"
Search by pattern like "(Sec 1)"
smohanty
Posts: 14Questions: 3Answers: 0
Hi!
I have a datasource of Names. Each name will end with a pattern that's like "(Sec 1)", "(Sec 2), "(Sec 3)", etc..
E.g. "John Smith (Sec 1)", "Jane Doe (Sec 1)", "John Doe (Sec 2)".
How can I enable the user to just type in "(Sec N)" and return all the columns that have "(Sec N)" at the end of their name?
Thanks!
Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
Answers
You can over-ride the existing search control and disable the smart
search()
- this means that the characters must be sequential. That gives you something like this,Colin