/suggest

jQuery suggest plugin

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

Usage

var haystack = ["ActionScript", "AppleScript", "Asp", ...];
$('#container').suggest(haystack, { 
  suggestionColor   : '#cccccc',     // default
  moreIndicatorClass: 'suggest-more' // default
});
<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.