Smart AutoComplete - Flexible Autocomplete Plugin for jQuery

Smart AutoComplete is smart and flexible jQuery based autocomplete plugin. Using Smart Autocomplete on your projects is easy. Only dependency it has is for jQuery core library. To enable autocompletion on the text field, you must select it using jQuery and call the smartAutoComplete method on it. Source can be either an array or a string specifying a URL. If you specify a URL, filter function will send an AJAX request to that URL, expecting a JSON array as a respons.

smartautocomplete Smart AutoComplete   Flexible Autocomplete Plugin for jQuery

Though Smart Autocomplete comes with sensible defaults, you can easily customize the default behavior by setting couple of one-line options. Apart from the required source field, it has 3 other options defined. The maxResults option sets the maximum number of results to be shown; delay option sets number of milliseconds plugin should wait (after user enters a key) before calling the filter function.

Smart Autocomplete plugin gives you the flexibility to override the built-in filter function with a custom function. Custom filter function should return an array of results or a deferred promise, which returns an array on resolve. If you call jQuery Ajax methods, those will return an object containing a promise by default.

Requirements: jQuery framework
Demo: http://laktek.com/2011/03/03/introducing-jquery-smart-autocomplete
License: MIT License

Incoming search terms for the article:

Related Posts

Ajax AutoComplete For jQuery

10 Awesome jQuery Autocomplete Plugins & Tutorials

AutoSuggest - auto completing jQuery plugin

2 Comments

  1. g

    04.07.2011

    hey, hey… you haven’t mentioned to us about this plugin is only support jquery 1.5.x above…?

    :( hmmmph…. is that true?
    I wonder how the response of JSON format expected if we change the ‘source’ options from that plugin?

    • Mufti Ali

      04.07.2011

      Hey , hey my apologize, yes, this plugin require jQuery core version 1.5 or above.