I'm experiencing issues with this script in Internet Explorer versions below 9. Can someone please help me identify what is wrong with my script? Thank you.
IE7 and IE8 are showing the following error: SCRIPT87: Invalid argument. Found in jquery.js, line 3 character 32369
The problematic code in jquery.js looks like this: function(a){this.parentNode.insertBefore(a,this.nextSibling)};
$(":radio[name=variant]").change(function() {
var vat = $(this).val()
/*$(this).parent().parent().find('td.cost').css("display", "none");
$("#costVariants_"+val).css("display", "block");
*/
$(this).parent().parent().parent().find('label.variant_color').css("border", "none");
$(this).parent().parent().parent().find('span.price').css("display", "none");
$("#color_"+vat).css("border", "1px solid white") ;
/*$("#price_"+vat).css("display", "block") ;*/
$("#price_"+vat).insertAfter($(this).parent().parent().find('.main_image'));
$(this).parent().find('.main_image').html($(this).parent().find('span.price').html());
$(this).parent().parent().parent().parent().parent().parent().parent().find('.main_image').html($(this).parent().parent().find('span.price').html());
});
I apologize if I made any mistakes in formatting as this is my first post here. Thank you for your assistance.