jQuery(document).ready(function($) { $("#frm_field_472_container").change(function() { const intl_address_field_prefix = 'field_intl_address_'; var streetAddress = $("#" + intl_address_field_prefix + "line1").val(); var city = $("#" + intl_address_field_prefix + "city").val(); var province = $("#" + intl_address_field_prefix + "state").val(); var postal = $("#" + intl_address_field_prefix + "zip").val(); var country = $("#" + intl_address_field_prefix + "country").val(); $("#field_hidden_address").val(streetAddress + " " + city + " " + province + " " + postal + " " + country); }); });
</script>
Thanks so much - I'll give this a try!
This code works great! Thanks!
Please login or Register to submit your answer