Fix title bug When select shipping address

$('#main .title-buttons.form-row .woocommerce-input-wrapper label').click(function (e) {
        e.preventDefault();
        var id = $(this).attr('for');
		$(this).closest('.woocommerce-input-wrapper').find('input[checked="checked"]').removeAttr('checked');
        $(this).closest('.woocommerce-input-wrapper').find( 'input#' + id ).prop( 'checked', true );
        if (id == 'billing_title_3') {
            $('#billing_company_field').css('display','block');
        }else{
            $('#billing_company_field').css('display','none');
        }
    });

Leave a Reply

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