Topic: how to preselect value in a Material Select Dropdown?
                  
                  belu
                  pro
                  asked 7 years ago
                
                      
                      Mikołaj Smoleński
                      staff
                        answered 7 years ago
                    
belu pro commented 7 years ago
Hi, and how would the script look like if I wanted to load a certain value on page load? thanks!Mikołaj Smoleński staff commented 7 years ago
You just need to add 'selected' attribute to the option tag.
                      
                      johndoe
                      pro
                        answered 7 years ago
                    
                      
                      Mikołaj Smoleński
                      staff
                        answered 7 years ago
                    
                      
                      belu
                      pro
                        answered 7 years ago
                    
                      
                      Mikołaj Smoleński
                      staff
                        answered 7 years ago
                    
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