I have a list of employees in an array.
I want to give users the ability to quickly find the employee they want by typing the first one, two, three etc letters of their name in a text box and have the names that match appear in a list so that the correct one can be selected.
For example:
If I type “G” into the search field the names George Jones, Graham Smith and Greg Miller might appear in the list. When I type another character – so I now have “GR” in the search box – the list reduces to Graham Smith and Greg Miller.
I think I can just about figure out how to loop through the array once looking for a first letter that begins with the Search letter but after that …?
Any help much appreciated.