Topic: Programmatically select multiselect dropdown items
garrithsteyn
pro asked 3 years ago
Closed
This topic is closed.
Closed
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Jakub Strebeyko staff commented 3 years ago
Hi there, Could you please provide some more context for the way you'd like to use multiselect? Adding theselectattribute to theoptiontag should provide you with multiple options being selected on page load. Regards, Kubagarrithsteyn pro commented 3 years ago
Hi My requirement was to auto select multiselect items after an ajax call. I managed to resolve it by editing mdb.js and setting the id of each list item and trigger the click event for each required option.