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".
Expected behavior
Actual behavior
Resources (screenshots, code snippets etc.)
lassekofoed answered 5 years ago
Maybe this can help you https://mdbootstrap.com/support/jquery/append-copy-of-mdb-select-not-working-i-4-8-10/
Mateusz Łubianka staff answered 5 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,
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: 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