nobleclem / jQuery-MultiSelect

Turn a multiselect list into a nice and easy to use list with checkboxes.
https://springstubbe.us/projects/jquery-multiselect/
MIT License
289 stars 216 forks source link

Way to add custom classes to at least input #189

Closed Creatium closed 2 years ago

Creatium commented 2 years ago

Missing a way to add custom classes to "input" aka button. Having set class styling for inputs, would be nice to be able to add my custom classes, so I dont have to override your styles.

Maybe this option exists, I just dont see it?

nobleclem commented 2 years ago

You can use the onLoad event to add classes as necessary.

$('select[multiple]').multiselect({
    onLoad: function( element ){
        $(element).next('.ms-options-wrap').find('> button').addClass('myclass');
    }
});