$(document).ready(function(){

    //onChange Event change the value of the rate and label tax in the Box
    $("#frm_common_province_home").change(function(e){
    
        /*
         change country to province/state
         */
        var province = $("#frm_common_province_home").val();
        
        /*
         Province of Canada
         */
        if (province > 142) {
            $('select[id=frm_common_country_home]').attr({
                value: 40
            });
        };
        
        /*
         State of USA
         */
        if (province < 143) {
            $('select[id=frm_common_country_home]').attr({
                value: 243
            });
        };
        
	})

    //onChange Event change the value of the rate and label tax in the Box
    $("#frm_common_province_work").change(function(e){
    
        /*
         change country to province/state
         */
        var province = $("#frm_common_province_work").val();
        
        /*
         Province of Canada
         */
        if (province > 142) {
            $('select[id=frm_common_country_work]').attr({
                value: 40
            });
        };
        
        /*
         State of USA
         */
        if (province < 143) {
            $('select[id=frm_common_country_work]').attr({
                value: 243
            });
        };
        
	})

    //onChange Event change the value of the rate and label tax in the Box
    $("#frm_common_province").change(function(e){
    
        /*
         change country to province/state
         */
        var province = $("#frm_common_province").val();
        
        /*
         Province of Canada
         */
        if (province > 142) {
            $('select[id=frm_common_country]').attr({
                value: 40
            });
        };
        
        /*
         State of USA
         */
        if (province < 143) {
            $('select[id=frm_common_country]').attr({
                value: 243
            });
        };
        
	})

});
