I'm encountering quite a weird JavaScript Issue in IE9 (It works fine tough in Chrome, Safari, Firefox).
I have some JS that selects a different Color of an Image when you click on that associated swatch. In IE9, it seems that is completely ignoring this and it is simply doing nothing. But, as soon as I open up the F12 Developer Tools it starts working - Even without reloading the page. Am I mising something here?
jQuery
$('.product-details-description-colors .circle img').click(function() {
if(!$(this).hasClass('oos')) {
url = $(this).parent('label').data('image');
color_value = $(this).parent('label').prev('input');
color_value.prop('checked', true);
$('.circle').find('input').not(color_value).attr('checked', false);
$(this).css('outline', '1px solid black');
$('.product-details-description-colors .circle img').not(this).css('outline', 'none');
$('.product-details-images-showroom img').attr('src', url);
}
});
console.?HTMLandCSS? Create a JS fiddle @ jsfiddle.net