function changes(element) { document.getElementById('shiptobilling-checkbox').checked = (element.value == 'local_pickup') ? true : false; }