Topic: Material Select- How to set default value?
This is a pretty common scenario, so it should be supported. Instead of showing placeholder option, I want to preselect an option.
I've found this solution to work fine
$('#mySelect option[value="optionValue"]').attr("selected", true);
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No