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

Add option to 'selected' in 'addOption' #218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eduardocintra
Copy link

When i needed a dynamic option i had to create a functionality that allows to create them already selected (in column two).

For that you have to:

$('#column').multiSelect('addOption', { value: a, text: a, index: 1, nested: 'optgroup_label', selected : 'selected' });

@Uhelliton
Copy link

@eduardocintra, Thanks!!!

@mtvbrianking
Copy link

It's surprising this has never been addressed.

Is there a way to override the addOption method as we way for the pull request to be reviewed?

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

Successfully merging this pull request may close these issues.

3 participants