Topic: change mdb-select option via api
ebebendel pro asked 7 years ago
Mikołaj Smoleński staff answered 6 years ago
Mirosław Stasiak free answered 7 years ago
Hi,
1. First, you have to destroy the select
$('.mdb-select').material_select('destroy');
2. Change option in select with your code
3. Initialize select again
$('.mdb-select').material_select();
Check forum, there were a few same topics.
Regards,
kaduamaral free commented 7 years ago
Really? I'm starting to regret buying it! Why haven't listened a change event? OMG!FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No