<select id="product_list" ....
I have a list box of products (1500+),and rather than manually selecting the product from the list box, by mouse, or by typing, I want to be able to paste the product name, or partial product name, into a text box:
<input type="text" id="product_lookup"
In doing do, I want it to select the first item in the list box that either fully or partially matches this input.
Eg. Product List:
Light Blue Widget
Dark Blue Widget
So in the above case, if I paste into the text box:
"Blue" it will select "Blue Widget"
"Dark" it will select "Dark Blue Widget"
"Light Blue" it will select "Light Blue Widget"
"Widget" it will select "Widget"
"Blue Widget" it will select "Blue Widget"
Hope that makes sense.