Select added with javascript have no style


Topic: Select added with javascript have no style

max rioux pro premium priority asked 1 months ago

Expected behavior

The select will have the mdb style

Actual behavior

Select have the default style

Resources (screenshots, code snippets etc.)

https://mdbootstrap.com/snippets/standard/max_rioux/3974822#html-tab-view


max rioux pro premium priority commented 1 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 pro premium priority answered 1 months ago

okay the function was in the api. I must have missed it when I checked it. https://mdbootstrap.com/docs/standard/forms/select/#docsTabsAPI


novatechsk answered 1 months ago

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


kpienkowska staff answered 1 months ago

Try this solution:
https://mdbootstrap.com/snippets/standard/kpienkowska/3988837


novatechsk commented 1 months ago

thx it's working


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Pro
  • 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
Tags