Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


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.)

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


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. https://mdbootstrap.com/docs/standard/forms/select/#docsTabsAPI


Kamila Pieńkowska staff answered 2 years ago


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


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.

FREE CONSULTATION

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

Status

Resolved

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