Reputation: 134
For example, when you open up your chrome browser and start typing a known url: www.google.com The browser autofills the url after u put in the first letter, when you press enter it opens the google website but your also able to keep typing for different urls. When the browser knows another url and you keep typing another letter after the g(oogle.nl) it autofills another known url.
What is the best way to achive this functionality in a HTML input field?
Upvotes: 1
Views: 466
Reputation: 66
You should have a look at: https://jqueryui.com/autocomplete/
This is (I personally think) the best and easiest way to do this.
Have fun!
EDIT: Raphael's answer is great, but isn't supported on Safari if I'm right.
Upvotes: 1