https://github.com/johnantoni/jquery.autocomplete
Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.
https://github.com/johnantoni/jquery.autocomplete
Last synced: over 1 year ago
JSON representation
Autocomplete an input field to enable users quickly finding and selecting some value, leveraging searching and filtering.
- Host: GitHub
- URL: https://github.com/johnantoni/jquery.autocomplete
- Owner: johnantoni
- Created: 2010-01-20T10:39:02.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2010-08-17T17:00:11.000Z (almost 16 years ago)
- Last Synced: 2025-02-05T19:09:01.467Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
- Size: 643 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Why:
jquery autocomplete 1.1 official has a bug with IE browsers (6,7,8+) which causes
the focus to go to the start of the textbox on mouse-select, rather than at the
end for autosuggestions
So:
This repository contains 1.1 official and 1.1pre, which DOES work in IE.
What i've done is run the jquery.autocomplete.1.1pre thru JSLint to fix any problems
and then compact it with Google Closure Compiler, hence version 1.1a.pre
For completeness, i've also included the official version, bgiframe (which fixes focus
in IE, sometimes) and ajaxQueue.
Happy coding
Example JS with message at bottom of autocomplete results...
var data = "Core Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities".split(" ");
$(".autocomplete").autocomplete(data, {minChars: 0});
function append_message(text) {
if ($(".ac_results").find("span").length == 0) {
$(".ac_results").append(""+text+"");
};
};
$(".autocomplete").keyup(function(){
append_message("If your country is not listed enter it anyway");
});