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: materialSelect not working to display the dropdown boxes

dcmhsdi free asked 5 years ago


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


Sebastian Kaczmarek staff 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



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: 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