diff options
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r-- | js/jquery.multi-select.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index fb478f5..653aa07 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -184,6 +184,14 @@ index = parseInt((typeof option.index === 'undefined' ? that.$element.children().length : option.index)), $container = option.nested === undefined ? that.$element : $("optgroup[label='"+option.nested+"']"); + if (option.optionClass) { + $option.addClass(option.optionClass); + } + + if (option.disabled) { + $option.prop('disabled', true); + } + $option.insertAt(index, $container); that.generateLisFromOption($option.get(0), index, option.nested); } |