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
You submit your selected filed by calling the Submit button ID in this field , even if the code is in other page too.
document.getElementById('submit').click();