Topic: Select added with javascript have no style

max rioux priority asked 8 months 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 8 months 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 8 months ago

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

kpienkowska staff answered 8 months ago

Try this solution:

novatechsk free commented 8 months ago

thx it's working

novatechsk free answered 8 months 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

  • User: 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