Feb 7, 2012

jQuery autocomplete plugin: jQuery.Suggest

Filled under: ,

Web sites, you often encounter on the search lines with auto-complete script. The simplest example of Google 's search line, you can see. Such scripts, start typing in the search helps you by suggesting to the user automatically. jQuery.Suggest name of the following plug-in developed with exactly this works. You can view and download the demo from the link at the end of the article for free. Now let's add the details of the outstanding ...


Simply plug the keyboard to work with the first letter in jQuery.Suggest begins. Automatically updated after you press the screen with every letter brings new proposals. Tab or Enter key to use the works of the proposal in line at the moment. If more than one proposal under the lower bottom line is listed on the search is found. This list CSS as well as visual as desired.

Javascript
var haystack = ["ActionScript", "AppleScript", "Asp", "BASIC", ...];

$(function(){
$('#container').suggest(haystack, {
suggestionColor : '#cccccc',
moreIndicatorClass: 'suggest-more'
});
});
suggestionColor value, an optional feature that automatically change the color of the proposals. moreIndicatorClass proposal appears in the list found in more than one proposal describes class'ını CSS.

Demo plug-in link below you can see and at the bottom jQuery.suggest Download the source as a free download section.

Go to jQuery.suggest plugin >>

Before using the add web sites, you can download license files in the folder where the eye atmanızda have benefits.

0 comments:

Post a Comment