Chapter 15: Introducing Ajax

Return to Chapter 15

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Auto-Completing Form Fields

See it run: Auto-Completing Form Fields

Script 15.11

This simple HTML provides the form field that will be auto-completed.

Script 15.12

This CSS styles the search field and the pop-up menu.

Script 15.13

This JavaScript handles the server request and the pop-up display.