Version compl�te: jsB@nk » Form » Domaines de copie 2
URL: https://www.javascriptbank.com/copy-fields-2.html
Copiez l'adresse de livraison des champs à l'adresse de facturation en utilisant une case à cocher. Simple et facile à mettre en oeuvre!
Version compl�te: jsB@nk » Form » Domaines de copie 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-->