select

Better select widgets in vanilla javascript.  https://p.ce9e.org/select/demo/
git clone https://git.ce9e.org/select.git

NameSize
LICENSE1072B
README.md1017B
demo/demo.css259B
demo/index.html12688B
package.json485B
select.css2414B
select.js7573B
tags.js3297B
utils.js430B
values.js3660B

Select

Better select widgets in vanilla javascript.

The code is intentionally very simple and close to browser defaults.

Usage

<link rel="stylesheet" href="select.css">
<script src="select.js" type="module"></script>
<script>
	new Select(element, {
		id: 'myselect',
		inputClass: 'my-input-class',
		valueClass: 'my-value-class',
		valueFocusClass: 'my-value-class--focus',
	});
</script>

Mobile support

This library does work on mobile. However, select usability on mobile is usually far superior to that on desktop. Therefore it is recommended to only use this on desktop.

Roadmap

Inspiration