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:

http://groups.google.com/group/jquery-en/browse_thread/thread/bb7b5df163aa9e2a/

Here’s the patched plugin code:

http://www.edwardotis.com/public_files/js/jquery-autocompleteplugin/autocomplete-single-click-dropdown-option.zip

Enjoy!

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.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>