Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Dynamically add an "Option" (multiselect+ajax) #302

@ghost

Description

I used to have select2+jquery in my website, but I've decided to switch to angular.
This used to be my code:

var option = new Option("id", "text"); $("select").append(option);

But now I have no idea how to add an option to select2 manually.
Can you give me a solution?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions