Looking for a "typeable" drop-down...

User 3144608 Photo


Registered User
22 posts

I want to allow people to begin typing in a field, with db searches onchange, and the drop-down to repopulate dynamically as they type. So if a person is looking up my name, as soon as they begin typing in the field, the drop-down shows all records with first names starting with whatever letters they've typed thus far.

I have no problem with the db backend piece, but I can't find a component that merges a dropdown with a text field like this. I'd have thought this was fairly common... Anybody have any hints?
User 2868102 Photo


Registered User
18 posts

I have an example you can check out here: https://github.com/mrudesyle/autocomplete_example
It's autcomplete on a text field. It pulls data from an API endpoint I set up. I am not the original creator of that project (I can't remember where I got it from), but it works great!
User 2868102 Photo


Registered User
18 posts

You can also check out this tutorial from W3 on Autocomplete on a Textfield: https://www.w3schools.com/howto/howto_js_autocomplete.asp
User 3144608 Photo


Registered User
22 posts

Many thanks, Mark R. Hopefully I'll find what I'm looking for there. I really appreciate you taking the time!

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.