jquery - Google auto complete on search bar? -


I have found many different ways to add auto complete for text input.

By the way:

What I would like to do is a method that has no possibility that anyone can type and can only use Google's autocomplete option . When you type in "dog", I get "dog breeds" like "dog" and "dog hunter hunter". When I type into a text input, I want to reveal the same thing

Thank you!

Please tell me if you have any explanation.

Thank you!

It is easily possible. Google provides an API for this:

Customer parameter is required.

Result:

<">" dog ", [" dog breeds "," dog, "" dog hunter hunter "], [", "", ""] , [], {"Google: suggesttype": ["QUERY", "QUERY", "QUERY"]}]

Then it's your parsing and your information is complete Provides for plugin.


Edit: I also found this method of accessing APIs:

And it seems that you do not use it for at least this person for your site can do.

Comments