Skip to content
A lightweight completion plugin for jQuery
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
example.html Added type and name attributes in input Jul 8, 2016 Removed dropdown absolute position and fixed cancel button. Jul 7, 2016


A lightweight completion suggester plugin for jQuery.

Compatible with jQuery 1.8.0+. No dependencies except the jQuery library. Released under the MIT License:



var data = [
  { id: "1", name: "ActionScript" },
  { id: "2", name: "AppleScript" },
  { id: "3", name: "Asp" }

  data: data
<input id="autocomplete" type="text" name="search" />


Key Default Type
cancelButtonText "Remove" String
data [ ] Array
dropdownAttrs { class: "dropdown" } Object
minLength 3 Integer
onSelect function { } Function
onCancel function { } Function
showCancelButton true Boolean
wrapperAttrs { class: "select-autocomplete" } Object

To specify settings after the init, use this syntax:

  cancelButtonText: "Remove",
  data: [],
  dropdownAttrs: {
    class: "dropdown"
You can’t perform that action at this time.