Update README.md

This commit is contained in:
Josh Johnson 2016-07-03 10:55:48 +01:00 committed by GitHub
parent 736dbb870b
commit e6b88bf5c9

View file

@ -9,11 +9,11 @@ A lightweight, configurable select box/text input plugin. Similar to Select2 and
const choices = new Choices(elements); const choices = new Choices(elements);
// Pass single element: // Pass single element:
const choice = new Choices(element); const choices = new Choices(element);
// Pass reference // Pass reference
const choice = new Choices('[data-choice']); const choices = new Choices('[data-choice']);
const choice = new Choices('.js-choice'); const choices = new Choices('.js-choice');
// Passing options (with default options) // Passing options (with default options)
const choices = new Choices(elements, { const choices = new Choices(elements, {