Skip to content
/ dropit Public

💧 A super-small, non-dependent JavaScript framework that allows you to easily customize selectboxes

License

Notifications You must be signed in to change notification settings

johnie/dropit

Repository files navigation

dropit

A super-small (1098 bytes gzipped), non-dependent JavaScript framework that allows you to easily customize selectboxes

Install

Bower

$ bower install dropit.js

npm

$ npm install dropit

Documentation

Plugin usage

Customize all select elements:

var selectBoxes = new Dropit();

Customize only some select elements:

var selectBoxes = new Dropit('div#main select.fancy')

Change default classes:

var selectBoxes = new Dropit('select', {
	hiddenSelectClass   : 'hidden',
	dropitClass         : 'custom',
	activeListClass     : 'active',
	selectedOptionClass : 'selected'
});

Contribute

See the contributing guide

Licence

MIT © Johnie Hjelm

About

💧 A super-small, non-dependent JavaScript framework that allows you to easily customize selectboxes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published