Skip to content

Instantly share code, notes, and snippets.

View martijnvbeek's full-sized avatar

Martijn van Beek martijnvbeek

View GitHub Profile
let element = document.querySelector('#auto-complete');
let uri = 'https://example.org/search';
let choice = new Choices(element, {
removeItemButton: false,
itemSelectText: '',
shouldSort: false,
});
let timer = null;
choice.passedElement.addEventListener('search', function (event) {