Jquery Suggest

Jul. 31, 2009
comments

jquery.suggest.js is a jquery plugin that allows you to provide a google like autosuggest functionality for your text input fields.

Features

  • Keyboard navigation
  • mouse highlight in the suggest box
  • hiding of the suggest box on the inputs blur and on clicks anywhere in the document
  • emphasizing of the part that would be completed
  • non destructive behavior, keeping previously entered characters in all cases
  • case insensitive matching

Example

completes month names (January, February etc.)

Usage

$('input').suggest({minComplete: 1, words:['January', 'February', 'March']});

Download

jquery.suggest.js

License

GNU AGPLv3 or later, Copyright 2009 Florian Bösch