Topic: materialSelect not working to display the dropdown boxes
Expected behavior I have to make 2 dynamic dropdown boxes that take input from an array and show them as their options. I am using $(".mdb-select").materialSelect(); to show these dropdowns.
Actual behavior The problem that I am facing is that one of the dropdowns is working fine but not the other one is not. When I write this command 2 times for both of these dropdowns separately it shows them 2 twice and the new dropdowns both are working fine but on the screen, I have 4 dropdowns. So can anyone help me with this?
Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/jquery/dcmhsdi/1382765/ here I have written my code, you can have a look
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.8.10
- Device: Thinkpad
- Browser: chrome
- OS: windows
- Provided sample code: No
- Provided link: Yes
Sebastian Kaczmarek staff pro premium commented 5 years ago
Could you please fix the snippet? In the console, there's a
unrecognized expression: $drop1
error. I could fix it but am not sure if that won't conflict with your intent