jQuery suggest plugin
JavaScript CSS HTML
Latest commit baeed40 Oct 12, 2015 @polarblau Merge pull request #27 from mattbee/master
Add Font Kerning CSS gotten from input element
Permalink
Failed to load latest commit information.
lib Added local version of jQuery. Oct 13, 2011
spec Allow passing custom text to display when there's multiple suggestions Apr 5, 2012
src
.gitignore Added _dev.html to gitignore. Oct 12, 2011
GPL-LICENSE.txt Added license txt files as stated in plugin. Oct 8, 2011
MIT-LICENSE.txt Added license txt files as stated in plugin. Oct 8, 2011
README.markdown
package.json

README.markdown

Usage

var haystack = ["ActionScript", "AppleScript", "Asp", ...];
$('#container').suggest(haystack, {
  // Available options with defaults:
  suggestionColor   : '#cccccc',
  moreIndicatorClass: 'suggest-more'
  moreIndicatorText : '…'
});
<input type="text" name="search" id="search" />

More information and demo can be found here.

The plugin will generate the CSS required based on the input's styles.

This plugin currently doesn't support remote resources for haystacks for performance reasons. This might change in the future.

Installation via npm

npm install jquery-suggest

Contributers