Autocomplete - submit on option click or enter.
Hi,
I'm trying to use jQuery UI's Autocomplete plugin to acheive the
following functionality:
- If the user clicks an option in the drop down list of autocomplete
items, it gets this value and submits the form.
- If the user presses enter or return when an option is selected in
the drop down list of autocomplete items, it gets this value and
submits the form.
How do I do this using the Autocomplete plugin? I've looked at the
documentation and demos, but it's not very clear. Ideally, it would
work in a similar way to the http://www.eurogamer.net autocomplete.
Any help would be much appreciated!
Phil