select-multiple icon indicating copy to clipboard operation
select-multiple copied to clipboard

'addOption' don't work

Open zhbzhbzhbz opened this issue 8 years ago • 0 comments

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 √)

zhbzhbzhbz avatar Feb 05 '17 12:02 zhbzhbzhbz