Enter the name of a fruit: horsey(document.querySelector('input'), { source: [{ list: ['banana', 'apple', 'orange'] }] }); Lazy load the fruits, useful for AJAX! (loading starts when the field is focused) horsey(document.querySelector('input'), { source (data, done) { var items = [ 'banana', 'apple', 'orange' ]; setTimeout(() => done(null, [{ list: items.filter(item => item.indexOf(data.input) !==
{{#tags}}- {{label}}
{{/tags}}