Auto filling a filed from another separate field when a checkbox is checked

7 Views Asked by At

function billingFunction (){ if(document.getElementById('same').checked){ document.getElementById('billingName').setAttribute('value') = document.getElementById('shippingName').value document.getElementById('billingZip').setAttribute('value') = document.getElementById('shippingZip').value } }

0

There are 0 best solutions below