Filtering datatable

Filtering datatable

bkbreddybkbreddy Posts: 2Questions: 0Answers: 0
edited September 2011 in DataTables 1.8
Hi, I am using Data Table. I want to filter the table with first character of the word. For example. if I have words like apple, bat, cat and I enter the letter 'a' in search and filter then the result should be only 'apple' but not bat and cat. But presently I am getting all the above three as 'a' contains in all. Please help me in this.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    regular expression filtering: http://www.datatables.net/examples/api/regex.html

    use ^a (^ is regex indicator for beginning of line)
  • bkbreddybkbreddy Posts: 2Questions: 0Answers: 0
    Hi fbas, can you give jquery script for the same.
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    sure, for $50
This discussion has been closed.