Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:

Copying Billing Form Fields Into Shipping Fields

By Will Bontrager
2005-05-11


Link Instead of Checkbox

If you prefer to have a link to click for filling in the shipping fields, instead of a checkbox, two changes need to be made:

1. Replace the checkbox form field with:

<a href="javascript:FillFields()"> 

Copy billing info into shipping.
</a>


2. Remove the first line of the FillFields() function:

if(box.checked == false) { return; }

Ease of use is a mark of professionalism.

Tutorial Pages:
» Copying Billing Form Fields Into Shipping Fields
» How To Do It
» Link Instead of Checkbox


Copyright 2004 Bontrager Connection, LLC


 | Bookmark
Related Tutorials:
» JavaScript Debugging Techniques with Firebug
» Striped Tables Using JavaScript
» Opening PDFs in a New Window with JavaScript
» Essential Javascript -- A Javascript Tutorial
» Submit Forms Conditionally using JavaScript
» How to Setup a Randomising Function