[codebox]document.getElementById('2ndStreet').value=document.getElementById('1stStreet').value;
document.getElementById('2ndCity').value=document.getElementById('1stCity').value;
document.getElementById('2ndState').value=document.getElementById('1stState').value;
document.getElementById('2ndZip').value=document.getElementById('1stZip').value;
document.getElementById('2ndPhone').value=document.getElementById('1stPhone').value;[/codebox]
This code takes the data entered into the 1st fields, and copies it to the 2nd fields.
I have one link where I need it to copy the phone, but blank out the information in the Address, City, State, and Zip fields. I cant figure out how to do that. I can make it copy the new phone, but it leaves the existing information for address. Any ideas?