我正在尝试在我的表单中添加一个复选框,它将帐单详细信息从表单复制到运输详细信息,但我的功能不起作用。
这是我到目前为止所拥有的:
function fillShipping(f) {
var billing = document.forms["billing"];
var shipping = document.forms["shipping"];
if (document.getElementById("checkshipping").checked)
{
f.title.value = f.title.value;
f.firstname.value = f.firstname.value;
f.email.value = f.email.value
f.phone.value = f.phone.value
f.Address1.value = f.Address1.value
f.Address2.value = f.Address2.value
f.city.value = f.city.value
f.postcode.value = f.postcode.value
f.country.value = f.country.value
}
谁能指出我哪里出错了?