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.
See it run: Putting Form Validation into Action
This is the HTML for the Car Picker example. This page is used for the rest of the examples in this chapter.
The script adds several blocks to the switch/case conditional, setting it up for later examples in the chapter.