I have set this up and it’s working great. It uses a search box to find that string within a box and toggles everything else to off. However, I need this to search for every word in the string separately.


For instance, if you were to search for “The Quick”, this would only bring up everything with the whole string in it. Whereas I was to search for the words “The” & “Quick” separately and toggle everything that doesn’t contain either of the terms.
I think you may be able to split the search term at the spaces and then you can see if the faq text contains the members of the resulting search terms array. So something like
So basically you create an array of search terms that appear in the faq text, and if the length of that array is zero then none of the terms appear in the faq, and you can hide it.

That would be kind of my first stab at it
Firstly, thank you for your help. I am a little confused with arrays (new to jquery) That seems like it would work. But It is throwing an issue with the “var” within the function. See codepen here.
https://codepen.io/conor-lyons/pen/WNGeQYM
Members
Online

source