View Code? Open in Web Editor
NEW
No-frills JS autocomplete library, with fuzzy matching
JavaScript 30.99%
HTML 69.01%
fuzzy-autocomplete's Introduction
Try it now on JSFiddle
- Load JQuery and fuzzy-autocomplete.js in header
- Define your input element:
<input id='sample-input'>
- Call fuzzy-autocomplete library
- Load with native array:
fuzzyAutocomplete($('#sample-input'), ['data1', 'data2', 'data3']);
- Load json array with ajax:
fuzzyAutocomplete($('#sample-input'), '/path/to/file.json');
- See
sample.html
for working demonstration
- Implement up and down navigation with keyboard
- Implement vanilla JS version to get rid of jQuery dependency
fuzzy-autocomplete's People
Contributors