I have jQuery code like this workig fine in FF, but totally fails in IE8:
$('#tekst img').each(function(){
var scrValue = $(this).attr('src').substring(0,4);
var imgTyp = $(this).attr('class').substring(1);
if(scrValue == 'tbid')
{
var splitedString = $(this).attr('src').split(':');
var imageID = splitedString[1];
$(this).append("<img src='ShowImage.ashx?ID=" + imageID + "' alt= '' />");
}
});
In 'IF' part, IE exits after first (srcValue== true) and even fails to display that first one image.. Any workaround?