Skip to content

'addOption' don't work #15

@zhbzhbzhbz

Description

@zhbzhbzhbz

Thank you for your efforts on this library~That's so cool.
However,I met a problem when I used the 'addOption'.
Case1
list.forEach(function (element, index) { $("#my-select").append("<option value='"+index+"'>"+element+"</option>"); }); $('#my-select').selectMultiple();
Case2
$('#my-select').selectMultiple('addOption',{value:"elem_"+index,text:element});

Case1 worked but item couldn't be clicked in Case2(no pointer, no √)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions