Implementing autocomplete in HTML input

I am creating a website. I use PHP, XML and HTML. My HTML files have input forms, and I want to implement an automatic suggestion in input forms. When you enter a search phrase into the google input form, a lot of suggestions appear in your browser. I definitely want to implement this.

What should I do? What language / interface / information do I need?

early.

+4
source share
3 answers

AutoComplete is done through JavaScript. Check out the jQuery Autocomplete plugin for a fairly simple library to get you started. You can either include the values โ€‹โ€‹that will be used for auto-completion in JavaScript, or you can make an AJAX request to a PHP script that contains sentences. Feel free to comment if you need further help.

+2
source

This will be the easiest way to do this ...

http://jqueryui.com/demos/autocomplete/

0
source

JQuery UI is a javascript framework that has a good autocomplete implementation: http://jqueryui.com/demos/autocomplete/

Of course you will need jquery and jquery ui javascript frameworks.

0
source

All Articles