goranefbl / softdrop

Simple and light JS plugin to customize <select> elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SoftDrop

Simple and light (2kb) JS plugin to customize <select> elements. Thats about it.

Live Demo

To see it in action, check out the live demo here.

Installation

For now, download the package and reference the JavaScript and CSS files manually:

<script src="dist/softdrop.min.js"></script>
<link rel="stylesheet" type="text/css" href="dist/softdrop.min.css">

Example Usage

As simple as it gets:

SoftDrop.init({
 	selector:'your-select-class', // select class
 	mobile:true  // to show on mobile
});

Browser Support

This component has been tested in the following browsers:

Chrome Firefox Safari IE Opera
Chrome Firefox Safari IE 9+ Opera

If anyone wants to run any tests on older browser versions, please do so and reach out to me!

License

Copyright © 2016 Goran Jakovljevic - under MIT License

About

Simple and light JS plugin to customize <select> elements

License:MIT License


Languages

Language:JavaScript 76.0%Language:CSS 24.0%