• Is it possible to auto submit the search form after selecting an autocomplete list item? I feel like this is expected behavior and should be there by default, considering google, youtube, bing and pretty much any search out there with autocomplete has this feature.

    I’ve tried writing custom scripts to submit the form when these are clicked, but it seems something in the source code is preventing the click events from firing.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1/ go to file awseomplete.js
    2/ Search for this code:
    _.REPLACE = function (text) {
    this.input.value = text.value;

    3/ add this line:
    $(‘input[type=submit]’).click();

    works great.

    How can i display the preloader instantly after user click on the search suggestion?

    it works when I come from main search form added in header. I have another form in Search results page. If user uses that form then the above code cannot works. Can you please guide that how to make it run for search results form also?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Auto-submit form’ is closed to new replies.