Show or Hide two checkout fields in Woocommerce
In Woocommerce checkout form im trying to hide billing_city and billing_address_1 fields first and after I fill the fields postcode and housenumber the other fields (address_1 and city) has to show. This is the script, but I does not work well and I dont know what I do wrong: ?> <script type="text/javascript"> jQuery('input#billing_housenumber').change(function(){ if (this.checked) { jQuery('#billing_city').fadeIn(); jQuery('#billing_city input').val(''); } else { jQuery('#billing_city').fadeOut(); } }); </script> <?php Any help is appreciated. Update 2 There is some errors, mistakes and