CopyForm
Type of script: JavaScript
Version: v1.0
Cost: Free
Download: No, the code can be found at the end of the page
Support: Yes
What’s this
If you have an order form where you ask the user for both a billing address and a shipping address. The user will, in most cases, have to enter the same information twice. With this script the user can fill in the shipping address by checking a checkbox. All information from the billing address will then be copied to the shipping address fields.
Online Demo
You can add as many fields as you like. Feel free to change the billing address before you check the checkbox.
JavaScript Code
If you use this script, please add a link to us:
<A HREF=”http://www.xaviermedia.com/javascript/”>Xavier’s JavaScripts</A>
Button instead of checkbox
If you want you can replace the checkbox with a button: