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

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

Open
ghost opened this issue Aug 3, 2016 · 0 comments
Open

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

ghost opened this issue Aug 3, 2016 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 3, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants