Jörn Zaefferer I have made some enhancements to your autocomplete plug in. The enhancements include three new options.
- focusFieldAfterSelect : gives focus to the input field after selecting on true, does no give focus on false - focusFieldAfterCancel : gives focus to the input field after clicking outside of it on true, does not give focus on false - onSetValue : a call back function that is called after the input field is updated via autocomplete The first two options were labelled as "TODO" in your code. I needed the third option, so I added it. You will find the updated plug in attached to this message. Cheers Max Franz
jquery.autocomplete.js
Description: JavaScript source