Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fields = $H({
- 'address_line_1' : 'billing_address_line_1',
- 'address_line_2' : 'billing_address_line_2',
- 'city' : 'billing_city',
- 'state' : 'billing_state',
- 'zip' : 'billing_zip',
- 'Field3916726' : 'billing_country'
- });
- if ($F(this) == 'on') {
- // set billing info equal to personal info
- fields.each(function(row) {
- $(row[1]).setValue($F(row[0]));
- });
- } else {
- // clear billing information
- fields.values().map(function(el) {
- $(el).setValue('');
- });
- }
Add Comment
Please, Sign In to add comment