Skip to content

Basic Usage ​

DotSelect enhances native <select> elements. All configuration is done through HTML attributes — no JavaScript needed.

Single Select ​

Add data-dot-select to any <select> element:

Multiple Select ​

Add the native multiple attribute:

Limiting Selections ​

Restrict the number of items with data-max-items:

Optgroups ​

Native <optgroup> elements are fully supported:

Pre-Selected Values ​

Use the native selected attribute:

Disabled ​

Allow Clear ​

Let users clear the selection with an × button:

Sizes ​

Three sizes via data-size:

Combining Attributes ​

Attributes can be freely combined:

MIT Licensed