Topic: How to programatically update "Search with select" widget?
The title says it all. I need to dynamically update the select form object. What's the best practice?
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Open
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.6.1
- Device: Mac
- Browser: Safari
- OS: OSX
- Provided sample code: No
- Provided link: No
Related topics
Piotr Glejzer staff commented 6 years ago
Hi,
You can use AJAX to do that, I think is the best practice when you are working with jQuery.
Best,
Piotr
bingimar commented 6 years ago
would you then empty the and append more and then run .materialSelect() again or manipulate the ul and li that are generated by .materialSelect()?
Piotr Glejzer staff commented 6 years ago
I don't know exactly how to explain for that cause we don't have an example with MaterialSelect 'updated dynamically'. Did you try an async function for that?