<script type="text/javascript" charset="utf-8"> //<![CDATA[ jQuery(document).ready(function() { jQuery('#shipping_country').val('US'); jQuery('#shipping_country_name').val('United States'); jQuery('#shipping_country_name').attr('readonly', 'readonly').focus(function() { this.blur(); }); jQuery("#customer_country_name").change(function() { validateBillingCountry(); }); function validateBillingCountry() { if(jQuery("#customer_country_name").val() != "United States") { jQuery("#use_different_addresses").click().attr("disabled", "disabled"); if ($("#shippingAlert").length == 0) { jQuery("#fc_use_different_address label span").append("<h4 id='shippingAlert'>Shipping only available to United States</h4>"); } } else { jQuery("#shippingAlert").remove(); jQuery("#use_different_addresses").removeAttr("disabled").click(); } } displayShippingAddress = function (obj) { jQuery("#shipping_service_id").val("0"); if (obj.checked) { jQuery("#fc_address_shipping_container").show(); } else { jQuery("#fc_address_shipping_container").hide(); } FC.checkout.updateShipping(-1); FC.checkout.updateTaxes(-1); } FC.checkout.displayShippingAddress = displayShippingAddress; validateBillingCountry(this); }) //]]> </script> |

function validateBillingCountry() {
if(jQuery("#customer_country_name").val() != "United States") {
jQuery("#use_different_addresses").attr({checked: 'checked', disabled: 'disabled'});
displayShippingAddress(jQuery("#use_different_addresses").get(0));
if ($("#shippingAlert").length == 0) {
jQuery("#fc_use_different_address label span").append("<h4 id='shippingAlert'>Shipping only available to United States</h4>");
}
} else {
jQuery("#shippingAlert").remove();
jQuery("#use_different_addresses").removeAttr("disabled");
jQuery("#use_different_addresses").removeAttr("checked");
displayShippingAddress(jQuery("#use_different_addresses").get(0);
}
} |
1 missing ")"!function validateBillingCountry() {
if(jQuery("#customer_country_name").val() != "United States") {
jQuery("#use_different_addresses").attr({checked: 'checked', disabled: 'disabled'});
displayShippingAddress(jQuery("#use_different_addresses").get(0));
if ($("#shippingAlert").length == 0) {
jQuery("#fc_use_different_address label span").append("<h4 id='shippingAlert'>Shipping only available to United States</h4>");
}
} else {
jQuery("#shippingAlert").remove();
jQuery("#use_different_addresses").removeAttr("disabled");
jQuery("#use_different_addresses").removeAttr("checked");
displayShippingAddress(jQuery("#use_different_addresses").get(0));
}
} |
I can't replicate what you're seeing in IE8 with the old code or the new code. Give this a try though and see if it magically fixes it 
It looks like you're new here. If you want to get involved, click one of these buttons!