you could use something like :
$('#suggestionFieldID').result(resultFunction);
function resuttFunction(event, data, formatted){
//submit form
}
below is taken from the autocomplete code:
$input.trigger("result", [selected.data, selected.value]);
this is your trigger action when an item is selected.
ciao,
John
On Wed, Nov 12, 2008 at 12:47 AM, Philip M <[EMAIL PROTECTED]> wrote:
>
> 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
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---