I am using jQuery UI v1.9. I successfully implemented the jQuery UI Autocomplete widget but I have some trouble when I have to handle cases when a user doesn't select any item from the open menu but still continue to type letters in the related autocomplete field (that is, cases when the user continues to type letters even if the autocomplete menu is hidden because no item with the name as the entered one is present in that menu).
In such cases (when no item selection was performed but a string is present in the autocomplete field), I would like to alert the user that he / she is no selecting an existing object but that he / she is typing a custom one. How can I make that?
Note: Practically speaking, I am trying to force the user to select an existing item or, if that was not selected, to prompt he / she to create a new one.