An open API service indexing awesome lists of open source software.

https://github.com/josephschmitt/mootools-skinned-dropdown

Mootools v1.2+ utility class that takes a <select> box and skins it using CSS and Javascript.
https://github.com/josephschmitt/mootools-skinned-dropdown

Last synced: 2 months ago
JSON representation

Mootools v1.2+ utility class that takes a <select> box and skins it using CSS and Javascript.

Awesome Lists containing this project

README

        

DESCRIPTION:

Mootools v1.2+ utility class that takes a box and skins it using CSS and Javascript.

USAGE:

Assuming this markup:

Option 1
Option 2
Option 3

The dropdown is skinned by executing the following Javascript

var skinned_dropdown = new Dropdown($('my_selectbox'), {
width: 125,
onSelect: function(value) {
switch(value)
{
case... // Handle cases here
}
}.bind(this)
});

The Dropdown class creates the following markup next to the element

and sets the element to display:none.