Auto Complete Textfield | JavaScriptSource

Auto Complete Textfield

Timothy Groves Apr 21, 2006


As the user enters information into a textfield, this script will provide suggestions based on the list in the array.

Search for a destination:


Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoCompleteTextfield.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document


Download the images using the URL below:

Leave a Response


Very Handy script. I've modified it so that it reads the fields from a database so instead of countries, I can use it to auto fill a form for customer last names, Invoice name it.[br /][br /]On one site, I'm having a problem with the sug_btn element.[br /][br /]Cant quite figure that one out but it's causing an error on one page I built with the script but not with others. A little more info on the sug_btn object and how it gets called and defined might help me.[br /][br /]But great script !!!!!!!!!

Charles Aug 8, 2008


SHIVA Dec 3, 2007