Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6920101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:06:18+00:00 2026-05-27T10:06:18+00:00

When using a jQueryUI AutoComplete with AutoFocus set to true, if you type too

  • 0

When using a jQueryUI AutoComplete with AutoFocus set to true, if you type too quickly and hit enter, the first selection will replace what you typed, even if it doesn’t match.

For example, if you type in “app”, and the first selection of the scrolling autocomplete is “apple”, and then continue to type in “applique” quickly and hit enter, “applique” is replaced by “apple”.

Immediately before the entered text is replaced by the first selection from the autocomplete, is there any way to make sure the first selection still matches the text entered?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:06:18+00:00Added an answer on May 27, 2026 at 10:06 am

    Decrease your delay in the autoComplete options. If you’re using local data, you can set the delay to 0. By default, it’s set to 300 (ms). So, after you press a key, it takes 300ms before it re-evaluates the dataset for matches.

    So, basically your autofocusing on the first item, and haven’t given it a chance to refilter before hitting enter.

    Alternatively, you could change the delay mid stream after the first autoFocus. So, the first time you wait 300ms to show a suggestion, then in the focus event, you decrease the timer to 0ms so it’ll filter the list faster.

    Be careful though, as a delay of 0 could cause issues if it’s remote data. Something like this might work well:

    $(".selector").autocomplete({
      delay: 300,
      focus: function () {
        $(".selector").autocomplete("option", "delay", 0);
      },
      source: sourceData
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using jqueryui autocomplete and have set up a search of an image
I am using jqueryui autocomplete widget for autocompleting a 'country' field but I am
I'm using jqueryui and its Autocomplete plugin. It use a json to extract items.
I'm now using http://jqueryui.com/demos/autocomplete/ based on some previous recommendations and it's working well for
I'm using jQuery UI, specifically Datepicker and Autocomplete, as follows: <script src=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js></script> <link href=http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css
I'm using the nifty 'combobox' variant of jQuery UI Autocomplete - see here: http://jqueryui.com/demos/autocomplete/#combobox
Im trying to implement an asp.net textbox using the jQuery UI Autocomplete widget http://jqueryui.com/demos/autocomplete/#remote
i use this example as a base: http://jqueryui.com/demos/autocomplete/#combobox its cool. But if you type
I'm using jQueryUI AutoComplete but am having a small problem in that no filtering
I am using jqueryui.com's autocomplete function and I would like it to add the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.