Full version: jsB@nk » Form » Copy Fields 2
URL: https://www.javascriptbank.com/copy-fields-2.html
Copy the shipping address fields to the billing address using a checkbox. Simple and easy to implement!
Full version: jsB@nk » Form » Copy Fields 2
URL: https://www.javascriptbank.com/copy-fields-2.html
<script language="javascript">// Created by: Will Bontrager :: http://www.willmaster.com/function FillBilling(f) { if(f.billingtoo.checked == true) { f.billingname.value = f.shippingname.value; f.billingcity.value = f.shippingcity.value; /* If more fields are used, just expand the parameters above to include the additional fields. */ }}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<form>Name:<input type="text" name="shippingname"><br>City:<input type="text" name="shippingcity"><br><input type="checkbox" name="billingtoo" onclick="FillBilling(this.form)"><br><br><em>Copy to billing fields.</em><br><br>Billing Name:<input type="text" name="billingname"><br>Billing City:<input type="text" name="billingcity"><br><input type="submit"></form><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->