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

How to initialize with setList() in select by value instead of text for select2 #95

Closed
martinmurciego opened this issue Aug 8, 2018 · 0 comments

Comments

@martinmurciego
Copy link

Greetings is a pretty useful plugin. Only that I would like to know how to initialize value in an element select.
I find it important to set option in select controls for its value to assign the id retrieved from the database in a record edition where I show what is stored.
In my case I use select2 and good use other plugins. It would be good something that allows you to customize the value setting for each control through a callback or something similar.

@martinmurciego martinmurciego changed the title How to initialize with setList in select by value instead of text for select2 How to initialize with setList() in select by value instead of text for select2 Aug 8, 2018
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