code – How to create a checkbox to show/hide a field in WooCommerce checkout
I want to put a checkbox before all fields where I want to ask people if they have vat number and when they check that checkbox I want to display vat_number field, also when isn’t checked I want to hide that field. I found a code on internet, but doesn’t work. Please take a look on my picture to understand. Thanks in advance, I will really appreciate!