I need to create an autocomplete search bar, that gives me suggestions base on multiple words (so, for example "win of the day" doesn't require me to write "win" first. If I write "day" and then "win", this option would still appear. And then, when I select one suggestion, the page scrolls to that FAQ question.
I have been trying with JS and Jquery (which I am not familiar with). Some incomplete examples:
- http://jsfiddle.net/uLq7wgkp/ (doesn't have autocomplete)
<script async src="//jsfiddle.net/uLq7wgkp/embed/"></script>
- https://jqueryui.com/autocomplete/#multiple (doesn't show me how to make it scroll to the faq question in the page.
- Multiple words autocomplete filtering (this one doesn't show how to scroll to question either).