Topic: mdb-select does not load the returned value from json
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
in consolelog, it brings the correct information, but it does not load the select $ ('# fc_funcao) as it should load
allanmr7 pro answered 4 years ago
follow the model https://mdbootstrap.com/snippets/jquery/allanmr7/2929615 ##
Krzysztof Wilk staff commented 4 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: 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
Krzysztof Wilk staff commented 4 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 4 years ago
follow the model https://mdbootstrap.com/snippets/jquery/allanmr7/2929615 ##