Jquery autocomplete plugin fix for single click focus

Jquery autocomplete forces a double click to get the drop down to show up. That’s no good for me. I’m using the jQuery autocomplete plugin instead of a Select box drop down. It needs to have the attributes of a dropdown, with the extra UI goodness of autocomplete pairing down a potentially huge dropdown list.

I’m going to be really lazy. I talked about the problem in a Google group thread here:


Here’s the patched plugin code:



This entry was posted in Uncategorized. Bookmark the permalink.

5 Responses to Jquery autocomplete plugin fix for single click focus

  1. yobro says:

    11 bates, dickson

  2. Shyam Reddy says:

    Excellent! Worked like a charm! Thankyou for posting it.

  3. bradvido says:

    It should be noted this only works in conjunction with minChars = 0;

  4. sallaboy says:

    Thanks a lot !!! it is working really good !!!

  5. MSMOHAN says:

    Hi, its working fine when i’m click on the textbox but i need to trigger the auto complete while focus from some other box’x using “tab” key. Please advice me..

Leave a Reply

Your email address will not be published. Required fields are marked *