Autocomplete user type exactly a result term
Hello,
Is there any way to detect if the information written by the user is exactly the result for a query? For example, if I use autocomplete to search my database and return a hidden ID, but I prefer writting all the word in the input instead of choosing from the results, how can I detect "onchange" that the user has written a valid term (as the "ui.item" on function change is undefined).
To show you an example, take the page http://jqueryui.com/demos/autocomplete/custom-data.html . If you write exactly the word "jQuery" and focus out of the input, the logo should be displayed in the left...
Thanks in advance!