Submit search when selecting an autocomplete