A lightweight custom select that you can style how you like.
Try out the demo!
- jQuery
- sass (only if you intend on including the provided base styles found in
src/sass/tiny-select.scss
)
<!-- Load tiny-select (required) -->
<script src="tiny-select.min.js"></script>
<!-- Load tiny-select css (optional) -->
<link rel="stylesheet" href="tiny-select.min.css">
// Initialize
$('select').tinySelect();
Method | Description | Example |
---|---|---|
open | Opens a tiny select | $('.tiny-select').tinySelect('open'); |
close | Closes a tiny select | $('.tiny-select').tinySelect('close'); |