Skip to content

How to select all options on load? #8

Description

@mzhadigerov

Hi! Thanks for the wonderfull repo. I'm loading the options on page load and was wondering how can I select the "all" option (select all options) on page load?

Did try this, but it seems not working:

var selectElement = document.getElementById('select-options')
var multiselectAllSelector = document.getElementsByClassName("multiselect-dropdown-all-selector")[0]
multiselectAllSelector.classList.add("checked")
selectElement.loadOptions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions