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

Select2 Default Value #87

Open
kcollignon opened this issue Apr 23, 2015 · 2 comments
Open

Select2 Default Value #87

kcollignon opened this issue Apr 23, 2015 · 2 comments

Comments

@kcollignon
Copy link
Contributor

I was wondering if there is any documentation on how to provide the pre-selected element for a Select2 dropdown with Typeahead. For example, if my model object has the selected car as "Toyota", when someone goes to an edit form i'd like the dropdown to be preselected with "Toyota". Thanks!

@kcollignon
Copy link
Contributor Author

Any suggestions @iStefo ?

@iStefo
Copy link
Owner

iStefo commented May 5, 2015

Hi @kcollignon,
does this work with plain select2 (3.5.2) when using typeahead mode? If yes, then this is definitely a bug that should be addressed by this addon.

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