Good afternoon. Cool plugin! But I can't figure out how to programmatically set the selected options. I'm using the vanilla version.
const myOptions = [ { label: "New York", value: "NY", }, { label: "Washington", value: "WA", }, { label: "California", value: "CA", }, { label: "New Jersey", value: "NJ", }, { label: "North Carolina", value: "NC", }, ]; var instance = new SelectPure(".multi_select", { options: myOptions, multiple: true, icon: "ms_close", });
instance.value(["NY"]) - not work