Topic: Update select options using searchable select and ajax
Espen Rønning pro premium priority asked 5 years ago
I'm trying to create a dynamic searchable select. I need the options to be set dynamicaly as I type in the searchfield. I've accompished this on an input using autocomplete, but I need it on a select. My ajax script would return the 20 first rows matching the searchfield, limiting the number of select options while typing.
I've tried setting up a snippet to show what I'm looking for: https://mdbootstrap.com/snippets/jquery/ererling-sande-no/2112791
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: Yes
- Technology: MDB jQuery
- MDB Version: 4.18.0
- Device: Any
- Browser: Any
- OS: Any
- Provided sample code: No
- Provided link: Yes
Grzegorz Bujański staff commented 5 years ago
Hi. Sorry but we don't have solution for this. Proposes to use the autocomplete component anyway: https://mdbootstrap.com/docs/jquery/forms/autocomplete/