// $(document).ready(function() { // // Listen for changes on the checkbox // $('.woocommerce-form__label-for-checkbox.checkbox').on('change', function() { // // Check if the checkbox is unchecked // if (!$(this).prop('checked')) { // // Hide the form row // $('.form-row.form-row-wide').hide(); // } else { // // Show the form row // $('.form-row.form-row-wide').show(); // } // }); // // Trigger the change event initially to handle initial checkbox state // $('.woocommerce-form__label-for-checkbox.checkbox').trigger('change'); // });