Topic: We have Purchased "Material Design for Bootstrap 4 Pro jQuery version [standard Bootstrap]". Dynamically Created "Select" is not working. Data is not loading when we use class "mdb-select md-form".

pavan_kp free asked 4 years ago


Expected behavior

Actual behavior

Resources (screenshots, code snippets etc.)


Mateusz Łubianka staff answered 4 years ago


Hi @pavan_kp,

You should add id for new select:

clone.getElementsByTagName("select")[0].setAttribute("id", x);

And init by ID:

$(`#${x}`).materialSelect();

If it isn't any solution of your problem please, create a snippet showing your problem here: https://mdbootstrap.com/snippets/. I'll try to help you.

Best,


lassekofoed free answered 4 years ago



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.12.0
  • Device: Monitor
  • Browser: Chrome
  • OS: OS
  • Provided sample code: No
  • Provided link: No