This example uses an XMLHttpRequest object to dynamically build a list of valid ZIP codes for a U.S. city and state entered by the user.

The data retrieved from the server is an XML document which is parsed to extract the ZIP codes.

Use your browser's View Source option to see the full source code.

City: State: Lookup ZIP Codes
ZIP Code: