Topic: Secondary initialize "mdb-select" is possible
Boris Akimenko
pro asked 3 years ago
Mikołaj Smoleński
staff answered 3 years ago
Boris Akimenko pro commented 2 years ago
This is not good if I try to initialize a several new elements.
Mikołaj Smoleński staff commented 2 years ago
What about the below solution? Best regards
Alex Gotardi
pro answered 3 years ago
// Material Select Destroy
$('.mdb-select').material_select('destroy'); Mikołaj Smoleński staff commented 3 years ago
Thanks for sharing Your solution!Boris Akimenko pro commented 3 years ago
Thank you Alex! But destroy is not good way as you say :) Init function must check selects by class which added when it initializedMikołaj Smoleński staff commented 3 years ago
Boris, is Alex solution working in Your project?Open
- User: Pro
- Premium support: No
- Technology: jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No