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

Only optgroup multiple #2828

Open
ketna11 opened this issue May 15, 2023 · 0 comments
Open

Only optgroup multiple #2828

ketna11 opened this issue May 15, 2023 · 0 comments

Comments

@ketna11
Copy link

ketna11 commented May 15, 2023

Hi, I am using bootstrap-select v1.13.18. I am trying to make , where only optgroup options can be multiple. So if we select non optgroup option, all other options are being deselect (including optgroup options) and if we select optgroup option all non optgroup options are being deseleted, but it is possible to select other optgroup options. Is there any built-in way to do this? <select class="selectpicker" data-container="body" id="levels"> <option value="1">My tasks</option> <optgroup id="departments" label="Departments tasks:" multiple> <option value="11">Service</option> <option value="12">Production</option> </optgroup> <option value="3" selected="">All tasks</option> </select>

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