Search if any part of word matched

Search if any part of word matched

hafizctnhafizctn Posts: 5Questions: 3Answers: 0

Suppose I have the following rows in the table:

An Apple a day
Exercise is essential

Now I search for "appl night." The string "night" does not exist in the table, however, the string "appl" does exist. Is it possible to show the row "An Apple a day" if one word (or part of string with space matches) while other/s not?

Thank you

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,118Questions: 1Answers: 2,583
    Answer ✓

    By default, DataTables filters out the values that don't match, so a search plugin wouldn't work here. The way to go would be to replace the standard search input element with your own, something like this here, as explained in this thread. It needs some work, but it should get you started,

    Colin

Sign In or Register to comment.