I have implemented the jquery ui autocomplete as in the example: autocomplete with custom data and diplay
I have some problems with the focus. The users continue to type in the box with the mouse over the menu so I want to remove the focus. The problem is that as soon as I comment the
//focus:
when the user select an Item it doesn’t fire the select event but just the changeEvent and the ui item is null so I can’t know who was the selected Item.
Any help appreciated.
just comment the focus: part but be sure not to have a handler for the .blur or .change if you have one the jquery ui autocomplete doesn’t apply the selected value, and doesn’t fire the select handler