Find an exact value in a column
Find an exact value in a column
Issues2018
Posts: 5Questions: 2Answers: 0
Hello, I have a DataTable like this: http://live.datatables.net/huloxiqo/1/.
When I search for Juan, The table shows me all row that CONTAIN Juan in the field, but I want that the table shows me ONLY the rows which field is Juan.
How can I do it?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hello @Issues2018 - The data tables search field doesn't seem to have a system for an exact match. You can instead use:
search()
search() api documentation example:
To search for an exact match, the function on key up should be: