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 5 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 5 years ago
Maybe this can help you https://mdbootstrap.com/support/jquery/append-copy-of-mdb-select-not-working-i-4-8-10/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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