nobleclem/jQuery-MultiSelect

optgroups

Closed this issue · 1 comments

I load dynamically optgroups in same list with option,
{options: "", label: ""},{value: "",name: "", checked: false},{value: "",name: "", checked: false},{options: "", label: ""},{value: "",name: "", checked: false},{value: "",name: "", checked: false}...,
but after $('select[multiple]').multiselect( 'reset' ) only the first group in the list is drawn

I looked at the code and realized where my mistake was. JS checks the existing groups,
since I have all the groups without a label, then of course only one remains on the page.
interestingly, this manifests itself after reset.