Autocomplete: First record in dropdown automatically selected
#1: I just migrated from Jörn's autocomplete plugin (
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/ ) to the autocomplete plugin in jQuery UI and I really miss that the top record of the dropdown list was automatically selected (so the user can simply press enter if he likes the the top record instead of using cursor keys or mouse).
#2: On a related note I also miss the mustMatch option which dictated that there should never be a text in the textfield that was not in the autocomplete list. I managed to hack around this a bit by initializing a flag as true and setting it as true every time autocompleteselect was dispatched. When autocompleteclose is dispatched I check this flag and if it is not true I clear the textfield contents (i.e. only "selected" entries are allowed, others are cleared).
To give some perspective I am essentially using the autocomplete as a glorified select box.
My questions are:
- Is there a workaround for #1 in the current version of autocomplete?
- Is there a better way to do #2 or even a build in property that I missed?
- If answers to the previous questions is no, do you intend to add support for these things in the future?
Thank your for jQueryUI!
Gardar