Do things with radio button

jQuery('input:radio[name=customer_type]').change(function() {
			
if (jQuery(this).is(':checked') && jQuery(this).val() == 'company') {
    jQuery('form.woocommerce-checkout').css('display', 'block');
    jQuery('.info-message-for-private').css('display', 'none');
  }
			
if (jQuery(this).is(':checked') && jQuery(this).val() == 'private') {
    jQuery('form.woocommerce-checkout').css('display', 'none');
    jQuery('.info-message-for-private').css('display', 'block');
  }	
});

Leave a Reply

Your email address will not be published. Required fields are marked *