Skip to content
/ select Public

Better select widgets in vanilla javascript.

License

Notifications You must be signed in to change notification settings

xi/select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',
	});
</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

  • allowClear

Inspiration

About

Better select widgets in vanilla javascript.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published