Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner


Developer Channel

FlashKit.com
JavaScriptSource
Developer Jobs
ScriptSearch
WebDeveloper.com
Webreference
HTMLGoodies
HTML5 Dev Center
Developer.com
jGuru.com
PHPBuilder

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Create an auto-complete or auto-suggest text box in JavaScript, without use of prototype handlers and other advanced techniques. This script could be adapted for use in a number of different situations.


(Begin entering one of the names below)
Albert, Allen, Barry, Beth, Hal, Harry, Steve, Susan


Send e-mail to:

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: autoCompleteFunction.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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

2. From: bart bosma
very neat
07/31/2008 23:08:23

however its best to change it to allow sending of array and splitter /delimeter character to function call like i did, so that lists can be dynamically included using php or similar

1. From: Rick Wannall
Perfect!
12/28/2007 08:11:26

Simple, clear example. Showed exactly what I needed to do to accomplish what I was after. Thanks for an excellent post.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.