Update select options using searchable select and ajax


Topic: Update select options using searchable select and ajax

Espen Rønning pro premium asked 10 months 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


Grzegorz Bujański staff commented 10 months 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/


Please insert min. 20 characters.