Try show/hide a field when checked a checkbox. How can i do this with jQuery?
Thats my code:
<input type="checkbox" class="input-checkbox " name="billing_wcj_checkout_field_2" id="billing_wcj_checkout_field_2" value="1">
<input type="text" class="input-text " name="billing_eu_vat_number" id="billing_eu_vat_number" placeholder="EU VAT Number" value="">
<script>
jQuery(function() {
jQuery('input[type="checkbox"]').on('change', function() {
jQuery(this).find('#billing_eu_vat_number_field').toggle(!this.checked);
});
});
});
</script>

_fieldto it.