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!

enter image description here

Răuțu Denis 1 year 2021-08-24T18:07:22-05:00 0 Answers 0 views 0

Leave an answer