Autocomplete: when user enter all the letters of an item, select it

Autocomplete: when user enter all the letters of an item, select it

Hi everyone!

suppose you have these items:

- Hello
- Hello world
- Hello Everybody

and the user start entering in the autocomplete "hello" and click elsewhere on the page, the autocomplete loses his focus and theres no item selected. In fact, the user have entered all the letters corresponding to an item in the list.

is it possible to detect that the user input refer to an item and select it even if the user didnt click the item?

take for examples these two implementation of an Autocomplete

- http://jquery.bassistance.de/autocomplete/demo/
- http://www.pengoworks.com/workshop/jquery/autocomplete.htm

if you enter each letters of an existing item but dont chose it, the autocomplete will have the item selected.

alex