NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the FAQ
for more details.
Not long ago I've written about how to use Google's Map AutoComplete API
. Now I've been going through my code and refactoring it. The new method is more flexible and easier to use.
My changes rely on jQuery
being part of your project.
This is what the initialisation code looks like now. Note that it does not search for any specific input element ID
, instead it searches for all input elements that have the CSS
and sets them up as an auto-completable
In my HTML
, I do something like this...
Any input element with the same CSS
class will be initialised now.
A quick disclaimer...
Although I put in a great effort into researching all the topics I cover, mistakes can happen.
If you spot something out of place, please do let me know.
All content and opinions expressed on this Blog are my own and do not represent the opinions of my employer (Oracle).
Use of any information contained in this blog post/article is subject to this disclaimer
Other posts you may like...