Basic Select2

Multiple Select
Single Select With Placeholder
Multiple Select With Placeholder
Multiple Select With Placeholder
Basic

Choices.js is initialized on this select element automatically.

Nested

Add options inside the optgroups to for group options.

Placeholder

Apply Placeholder by setting option placeholder option.

Tagging with multi-value select boxes

Set tags: true to convert select 2 in Tag mode.

Small Select2

A compact single-select with search disabled.

Disabling options

Disable Select using disabled attribute.

Limiting the number of Tagging

Set maximumSelectionLength: 2 with tags: true to limit selectin in Tag mode.