How do I create an input predictable text when an input value is added to an input box?

See the Country Autocomplete example.