Custom autocomplete form and autosubmit


I’ve added an autocomplete function for my views_exposed_form (a text input) using this tutorial and it works (

I’d like to add a “submit on click” behaviour, so when I click on a value of the autocomplete it changes the value of the input and then submit the form.

How should I do this?

قالب وردپرس