1.0.0 • Published 9 years ago

dropit v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

dropit

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

Install

Bower

$ bower install dropit

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