Fork me on GitHub

Simplest Selectbox

A styleable replacement for SELECT elements

Usage

It has a very simple implementation. You just need to add script of the library and use data-select as data attribute shown below.

<script src="path-to-libray/selectbox.js"></script>

<select data-selectbox>
    <option value="Option 1">Option 1</option>
    <option value="Option 2">Option 2</option>
    ...
</select>

You can use following cdn links. (Note: Style is just for general purpose, you can ignore if you want to use your own style.)

<script src="https://cdn.jsdelivr.net/gh/dhruvangg/selectbox@1.0.0/dist/selectbox.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/dhruvangg/selectbox@1.0.0/dist/selectbox.css" />

Demo

Get started today!