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: mdb-select does not load the returned value from json

allanmr7 pro asked 3 years ago


I have two selects and the second is filled according to the value of the first select. the second select I am doing the query via ajax. The return is correct, but I can't load the values ​​into mdb-select, using the select id

part of the ajax code

in consolelog, it brings the correct information, but it does not load the select $ ('# fc_funcao) as it should load

console.log


Krzysztof Wilk staff commented 3 years ago

Hi!

You can try to reinitialize the select after an update or initialize it after the data is sent. Also, could create a simple example of this issue using our online editor? It'll be very helpful :)

Best regards


allanmr7 pro commented 3 years ago

follow the model https://mdbootstrap.com/snippets/jquery/allanmr7/2929615 ##


allanmr7 pro answered 3 years ago


follow the model https://mdbootstrap.com/snippets/jquery/allanmr7/2929615 ##


Krzysztof Wilk staff commented 3 years ago

Hi!

Please provide a working example. It's hard to recognize the problem with a snippet that doesn't work. This select component is also not initialized.

Best regards



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: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: computer
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No