Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes options of select2 depend on another select2 #1154

Open
mtilokani opened this issue Jan 7, 2020 · 0 comments
Open

Changes options of select2 depend on another select2 #1154

mtilokani opened this issue Jan 7, 2020 · 0 comments

Comments

@mtilokani
Copy link

mtilokani commented Jan 7, 2020

Hi...

I am able to change options in select2 based on another select2 through following line:
$('.select2-class').editable('option', 'source', [...]);

Options are getting changed, but as soon as select 1 of the option then it is showing as "Empty" as soon as I mark for save.

So is there any solution for this.

And I can also see in editable element that source gets updated but input.sourceData is still holding old set of options.

So is there any solution for this? Please help.

@mtilokani mtilokani changed the title Changes options of select2 Changes options of select2 depend on another select2 Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant