Expand|Select|Wrap|Line Numbers
- <script>
- function copyAddress
- {
- document.getElementById("billName").value = document.getElementById("shipName").value;
- document.getElementById("billStreet").value = document.getElementById("shipStreet").value;
- document.getElementById("billStreet2").value = document.getElementById("shipStreet2").value;
- document.getElementById("billCity").value = document.getElementById("shipCity").value;
- document.getElementById("billCountry").selectedIndex = document.getElementById("shipCountry").selectedIndex;
- document.getElementById("billProvinceState").selectedIndex = document.getElementById("shipProvinceState").selectedIndex;
- document.getElementById("billPostalZip").value = document.getElementById("shipPostalZip").value;
- document.getElementById("billDayPhone1").value = document.getElementById("shipDayPhone1").value;
- document.getElementById("billDayPhone2").value = document.getElementById("shipDayPhone2").value;
- document.getElementById("billDayPhone3").value = document.getElementById("shipDayPhone3").value;
- document.getElementById("billCellPhone1").value = document.getElementById("shipCellPhone1").value;
- document.getElementById("billCellPhone2").value = document.getElementById("shipCellPhone2").value;
- document.getElementById("billCellPhone3").value = document.getElementById("shipCellPhone3").value;
- document.getElementById("billEmail").value = document.getElementById("shipEmail").value;
- }
- </script>
Expand|Select|Wrap|Line Numbers
- <script>
- function FillFields(box) {
- if(box.checked == false) { return; }
- document.bookform.billName.value = document.bookform.shipName.value;
- document.bookform.billStreet.value = document.bookform.shipStreet.value;
- document.bookform.billStreet2.value = document.bookform.shipStreet2.value;
- document.bookform.billCity.value = document.bookform.shipCity.value;
- document.bookform.billCountry.selectedIndex = document.bookform.shipCountry.selectedIndex;
- document.bookform.billProvinceState.selectedIndex = document.bookform.shipProvinceState.selectedIndex;
- document.bookform.billPostalZip.value = document.bookform.shipPostalZip.value;
- document.bookform.billDayPhone1.value = document.bookform.shipDayPhone1.value;
- document.bookform.billDayPhone2.value = document.bookform.shipDayPhone2.value;
- document.bookform.billDayPhone3.value = document.bookform.shipDayPhone3.value;
- document.bookform.billCellPhone1.value = document.bookform.shipCellPhone1.value;
- document.bookform.billCellPhone2.value = document.bookform.shipCellPhone2.value;
- document.bookform.billCellPhone3.value = document.bookform.shipCellPhone3.value;
- document.bookform.billEmail.value = document.bookform.shipEmail.value;
- }
- </script>
What am I doing wrong?