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 8923795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:13:46+00:00 2026-06-15T07:13:46+00:00

Previously I had asked this question and accepted the answer because it worked in

  • 0

Previously I had asked this question and accepted the answer because it worked in Chrome. This answer, however, does NOT work in IE 8 or IE 9 (and probably earlier versions as well). What I mean by “doesn’t work” is that in IE when selecting a value from the list, the menu should close, but it remains open. I assume this is because the input keeps its focus when selecting a value. How can I fix it in IE?

I created a jSFiddle to illustrate this (open it in IE).

$(document).ready(function() {
    $("#cityInput").autocomplete({
        minLength: 0,
        source: ['one', 'two', 'three', 'four', 'five']
    }).focus(function() {
        $(this).autocomplete("search", "");
    });
});​
  • 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-06-15T07:13:47+00:00Added an answer on June 15, 2026 at 7:13 am

    Try returning false from the event handler:

    $("#cityInput").autocomplete({
        minLength: 0,
        source: ['one', 'two', 'three', 'four', 'five']
    }).focus(function () {
        $(this).autocomplete("search", "");
        return false;
    });
    

    Updated fiddle: http://jsfiddle.net/GxsEC/5/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an edited version of a question that I had previously asked (and
I asked this question previously and thought I had it figured out but it
I had previously also asked a question on this and was unable to get
I have seen this question asked previously but can not find a clear explanation
I had asked this question previously on SO. This is related to it. We
I am working on this problem and had previously asked related question. Implementation of
This question was previously asked in scala-user mailing-list without a confirmed answer. scala> val
I had previously asked this question, trying to get started with this code: The
I previously asked this question in the Delphi XE2 timeframe, and the answer then
I previously had a post on this issue that was resolved. However since rebuilding

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.