How to implement a faux-autocomplete on search?
I'm trying to stimulate autocomplete on my website search. For example, I want to be able to type 'sport' and have the search bar suggest values that include 'sport'.
I just want to demonstrate this search function once, so I could just hardcode it and it doesn't have to be actually functional.
I want to be able to type 'sports' into the search box and have the values 'basketball', 'baseball', and 'soccer' (which I entered manually while creating the prototype) automatically appear underneath the search box.
If I were to type something else than 'sport', nothing would happen since I have only anticipated for the user typing sport, if I'm making sense.
How do I do this? Thanks!