Auto complete.

Auto complete.

Hi all,
I need help to realize that:
I have an input text, when I write a town, I would like that during writing it would be auto completed by the name of the town found in the database.

If it doesn't exist I complete writing.

Thanks in advance.

Tegatti