Topic: Select added with javascript have no style

max rioux priority asked 2 years ago

Expected behavior

The select will have the mdb style

Actual behavior

Select have the default style

Resources (screenshots, code snippets etc.)

max rioux priority commented 2 years ago

There is clearly a js function in modules/select.min.js to initialize one but since this is the min version (unreadable) I can't find it

max rioux priority answered 2 years ago

okay the function was in the api. I must have missed it when I checked it.

Kamila Pieńkowska staff answered 2 years ago

Try this solution:

novatechsk free commented 2 years ago

thx it's working

novatechsk free answered 2 years ago

I can't setValue to select when it's dynamically created and populated by ajax.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Computer
  • Browser: Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes