I have had some help on a Jquery script which creates a searchable, toggleable FAQ. The code can be seen here:
The trouble is, if there is the word “How” with an upper case “H” and I search “h”, it wont find it. How can I make this script case insensitive?
Update
Alternatively, you could reduce the amount of code significantly using regular expression. jsFiddle demo
Original
Based on your current algorithm for determining relative elements, you could use the jQuery
filtermethod to filter your results based on thekeywordsarray. Here’s a rough idea: