Add instant autocomplete suggestions to a search box without pulling in a large UI library.
Give a form's country or city field a dropdown of suggestions that appears as the user types.
Add tag autocomplete to a blogging or note-taking app using a static list of existing tags.
Awesomplete is a small JavaScript library that adds autocomplete suggestions to text input fields on a web page. When a user starts typing in a form field, the widget displays a dropdown list of matching options drawn from a list the developer provides. It requires no other libraries to function and works in modern browsers without extra dependencies. Adding it to a project is straightforward: you include one CSS file and one JavaScript file in your HTML page, then attach the widget to any input field. You can specify the suggestion list directly in the HTML using a data-list attribute, or by pointing to an existing list element elsewhere on the page. The widget picks up the suggestions automatically when the page loads, so no additional scripting is required for the basic case. The library offers a handful of configuration options. Developers can control how many characters a user must type before the suggestion dropdown appears (the default is two), how many suggestions to show at once (the default is ten), and whether the first suggestion should be pre-selected automatically. These settings can be applied either in JavaScript or as HTML attributes directly on the input element, which makes simple setups possible without writing any extra code. Awesomplete is released under the MIT License, meaning it is free to use in personal and commercial projects alike. The source is open and has received contributions from many developers since its creation by Lea Verou. Full documentation and a live demo are available on the official project site.
← leaverou on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.