I have some Jquery written that works fine in firefox and chrome but throws an ERROR in IE.
Here is the sections of code that when taken out allow the other parts of the script to be run correctly...(otherwise the entire file is not read by IE)
var product_qty_is_zero = ExternalCustom_product_qty_is_zero; //'import' external variable from view.phtml
var option_is_selected = false;
var options_exist = false;
if( ($(".options-container-big").length > 0) || ($(".options-container-small").length > 0) )
options_exist = true;
$('#main-button-btn-cart').mouseenter(function() {
//@ controlling backorder message
if(product_qty_is_zero)
{
$('#select-product-reminder').slideDown(300);
$('#select-product-reminder').text("product is purchaseable but on backorder");
$('#select-product-reminder').css("background-color", "#c3c3c3");
}
});
$('#main-button-btn-cart').click(function() {
if(!option_is_selected && options_exist)
$('#select-product-reminder').slideDown(300);
else
productAddToCartForm.submit();
});
$('#select-product-reminder').slideUp(300);
option_is_selected = true;
var image_info = ExternalCustom_image_info; //'import' variable from media.phtml
var image_link;
var $selected_value_variation = $('.selected').html();
for (var i = 0; i < image_info.length; i++)
{
if(image_info[i][0] == $selected_value_variation)
image_link = image_info[i][1];
}
$('#main-image').attr("href", image_link);
If anyone could look over it and see if there are any errors that are common for IE to flag and give me some hints it would be greatly appreciated!
Note* I already tried the class and div extensions such as $('div.options-container-big') and $('div#main-button-btn-cart')