Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Set selectedΒ #70

@hrupin

Description

@hrupin

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

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