Copying Text Fields with Checkboxes

Most of you have bought items online (I know Jeff Bezos owes me a personal thank you note from all I spend on, and you've probably had to fill out both shipping and billing information. Web sites have handled this in a number of different ways. Some of them ask you to fill in the billing information only if it's different from the shipping information. Others have you check a box stating they're the same (but nothing different appears on the screen). Still others have you check a box stating the two are the same, which automatically populates the billing information fields. This latter one is what we're going to build.

We'll be building a page for the Shelley Store that looks something like Figure ...

Get Advanced JavaScript™: Insights and Innovative Techniques now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.