DEV Community

Cover image for Vanilla JavaScript Autocomplete Library For Text Inputs
jQueryScript
jQueryScript

Posted on

Vanilla JavaScript Autocomplete Library For Text Inputs

Ajax Autocomplete: a pure vanilla JavaScript library that adds autocomplete and autosuggest to any text input field.

No jQuery. No dependencies. Just ~13KB of ES6+ code with a complete production API.

Key features:

  • Local array and Ajax/JSONP lookup modes
  • Built-in response caching and bad-query prevention
  • Grouped results via groupBy with custom header rendering
  • Full keyboard navigation (arrows, Enter, Escape, Tab)
  • Instance lifecycle methods: enable, disable, clear, dispose
  • Mobile Safari compatible

👉 Blog Post

👉 GitHub Repo

👉 Live Demo

Top comments (0)