I add an event listener onto a text inputbox, when a user inputs a value it calls a function.
That function loops through a JSON array data to find matches and then returns each match so it can be added as a DIV with data to a parent DIV back on the main page as options so a user can collect one
What I'm thinking of doing is splitting the input into an array based on space " " or /
The match each array item against first and last name options in my object list.
The trick is, once the first item is matched, the second must be a filtered array of those options. For example...
I'm really not sure how to explode the user input based on space or slash or do subsequent matches