Topic: onchange native form select
baasjedave pro premium asked 6 days ago
Expected behavior Dynamically change a select value natively for example by: document.getElementById('selectID').value = 4;
To avoid complete lock-in, it would be nice to have watchers from MDB looking at native onchange value events en update mdb select instance.
Actual behavior From the docs it says to dynamically change a dropdown value use: Select.getOrCreateInstance(this.element).setValue('4');
How would you tackle this one?
Kamila Pieńkowska staff answered 5 days ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.3.2
- Device: All devices
- Browser: All browsers
- OS: Al systems
- Provided sample code: No
- Provided link: No