How to create a dropdown inside input text field?

hi! I am having an issue in making dropdown in the text input field.I want a input field in which user can either select from the dropdown menu or type some text.

I am looking to do the same. I have an input field where the user will type in an address and the drop down will return a list of addresses to choose from.

Any help with this?

Thanks,

RGecy