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 amazon.com), 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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.