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

Selected options does not show when using ajax #3979

Closed
lsv opened this issue Dec 2, 2015 · 1 comment
Closed

Selected options does not show when using ajax #3979

lsv opened this issue Dec 2, 2015 · 1 comment

Comments

@lsv
Copy link

lsv commented Dec 2, 2015

I created this fiddle, to test it out

https://jsfiddle.net/mav6a1d5/

Why is the "123" not pre selected?

If I remove the options from select2() then it does show, but then it opvious cant search.

My use case for this is:
A user have 3 options, which get validated on server side, if the user has some errors (either in the selects or in other fields) then they should come back, but now with pre selected selects.

@kevin-brown
Copy link
Member

This is a duplicate of #3990 (picked that ticket because it is general).

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

2 participants