I need to hide the billing address, city, state and zip fields when the checkout page is loaded in order to use our address validation script. The code below accomplishes what we want but it does it too late in the process. You see the fields until it runs the updated_checkout event which is too late in the process. However running it on init_checkout seems to be too early as there is something else forcing those fields to be displayed. Is there something in between init_checkout and updated_checkout that I should be watching for?
jQuery( "body" ).on( "updated_checkout", function() { jQuery("#billing_country_field, #billing_address_1_field #billing_address_2_field, #billing_city_field, #billing_state_field, #billing_postcode_field").css("display", "none"); });
jQuery( "body" ).on( "init_checkout updated_checkout", function(){ ...init_checkoutas there seems to be something else that displays the fields afterwards.