jQuery.suggest is a simple and lightweight inline autosuggest jQuery plugin. To make it work you need to make an array of terms as haystack and the plugin will then suggest the user the first item that matches what they have been typed to that point. The suggestion is always updated with every keystroke. Hitting TAB or ENTER will accept the suggestion and update the input.
If in case that are more than one match, a small indicator will appear underneath the input (the indication can be styled via CSS anytime). The user can then scroll down through the options via up/down key arrows. jQuery.suggest has been tested using Jasmine so should be bug-less.
Inline autosuggest jQuery plugin – Preview