Using autocomplete widget , you can add autocomplete feature to your input
field. In this field when you will start type something , it will provide a list
of related possible values (starting from that letter which you already typed).
When you click on any of these , it will auto complete the remaining text.
For options, events ,method and theming click here