Copy Billing Address to Shipping Address on VF Page Using JavaScript
Class Code public class CopyAddressFromBillToShip{ public String BCountry { get; set; } public String BZip { get; set; } public String BState { get; set; } public String BCity { get; set; } public String BStreet { get; set; } public String SCountry { get; set; } public string SZip { get; set; } public String SState { get; set; } public String SCity { get; set; } public String SStreet { get; set; } } Page Code <apex:page controller="CopyAddressFromBillToShip" > <apex:form id="myform"> <script type="text/javascript"> function addressCopy(bstreet1, bcity1, bstate1, bPostalCode1, bcountry1, sstreet1, scity1, sstate1, SPostalCode1, scountry1) { document.getElementById(sstreet1).value = document.getElementById(bstreet1).value; ...