Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 613 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 613 Bytes

fuzzy-autocomplete

Try it now on JSFiddle

  1. Load JQuery and fuzzy-autocomplete.js in header
  2. Define your input element: <input id='sample-input'>
  3. Call fuzzy-autocomplete library
  4. Load with native array: fuzzyAutocomplete($('#sample-input'), ['data1', 'data2', 'data3']);
  5. Load json array with ajax: fuzzyAutocomplete($('#sample-input'), '/path/to/file.json');
  6. See sample.html for working demonstration

To-dos

  1. Implement up and down navigation with keyboard
  2. Implement vanilla JS version to get rid of jQuery dependency