mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-14 19:55:13 +02:00
Update README.md
This commit is contained in:
parent
736dbb870b
commit
e6b88bf5c9
|
@ -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, {
|
||||||
|
|
Loading…
Reference in a new issue