2

I am using jQuery datatables and was hoping someone knew how to do this.

We have items in the database listed as 4x4 and 4wd. I would like it to also retrieve 4wd when I type in 4x4 and visa versa.

Thanks for your help in advance.

Andy

4
  • if search filter == 4x4 add another or operator for col_name = '4wd' Commented Sep 6, 2013 at 2:37
  • Hi Vond Ritz, I was wondering where I should implement this code? Commented Sep 13, 2013 at 1:43
  • you can do it on your datatables if it's processing on server-side. Commented Sep 13, 2013 at 2:31
  • if it's not processing on server-side. MaVRoSCy suggestion will solve your problem. Commented Sep 13, 2013 at 2:32

1 Answer 1

1

One solution will be to have a hidden column (see bVisible) and add the alternate description in that column. (In your case, where the result is 4x4 then in the hidden column it would be 4wd and the other way around). So when you search you will get both results

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.