Using JQuery Autocomplete on a traditional HTML form.
Trying submit the form (the old-fashioned way) when a selection is made.
But the input box gets filled
$( "#searchField" ).result(function(event, data, formatted) { $(this).closest("form").submit(); });
The searchField is already populated with the selected field, so no need to do it in this function again.
Official documentation: http://docs.jquery.com/Plugins/Autocomplete/result#handler