jquery.suggest, a "Google Suggest"-like autocompleter
August 6, 2007 - 4:14pm — vulgarisoip
jquery.suggest is my attempt at a jQuery autocompleter that functions much like Google Suggest (http://www.google.com/webhp?complete=1&hl=en). I used code and techniques from two popular jQuery autocompleters:
- autocomplete (http://www.dyve.net/jquery/?autocomplete)
- Interface autocompleter (http://dev.jquery.com/browser/trunk/plugins/interface/iautocompleter.js)
Here are the unique features:
- Smart cache system that takes a maximum cache size in bytes and uses MRU list to discard items. Oh, and the caching works correcly.
- Doesn’t assume that you have to choose an item from the drop down list. If an item is selected and you hit enter or tab, that item is copied to the element. Otherwise, hitting enter or tab works just like a normal element.
- Event handler for selecting a drop down item.
- Works the same in Firefox, Safari, IE 6&7.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 1.1 | 2007-Aug-31 | 2.78 KB | Recommended for 1.1.x | ||