Auto Complete Textfield | JavaScriptSource

Auto Complete Textfield

Timothy Groves Apr 21, 2006

General

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


Search for a destination:

Notes

Source Code

Paste this source code into the designated areas.

External file

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


Head

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


Body

Paste this code into the BODY section of your HTML document


Other

Download the images using the URL below:

Leave a Response

(2 comments)

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 number...you 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

LKASDKFJIAS[br /]SDFSDFJKSDJF[br /]ASDKFJLADSJFSA[br /]SDLFJSLDKJF[br /]ASSDFJKSJDF[br /]SADFFJSDF

SHIVA Dec 3, 2007