glebkema / jquery-stylize-select

This plugin adds blocks around the selection field and creates the necessary event handlers. You can stylize the look of these blocks using the CSS. The plugin simplifies website development.
MIT License
1 stars 0 forks source link

Provide public methods #26

Open glebkema opened 4 years ago

glebkema commented 4 years ago

It is necessary to make the options selected,hidden / visible anddisabled / enabled by special methods from external scripts without knowledge of the CSS classes used by the plugin.

Something like this:

var selectSomething = $('.select-something).stylizeSelect();
selectSomething.getOption('value').makeDisabled();

Or maybe like this:

$('.select-something).stylizeSelect();
$('.select-something).getOption('value').makeDisabled();