Setting image src attribute not working in Chrome

The following works well with Chrome and does not seem to give any messages to console:

image.src = "about:blank"; // Clear source path

You could change it to

jQuery(this).attr("src", "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");

maybe?


Since in my case by doing this

$(this).attr("src","");

clearing the src attribute, but, image does not vanish. Hence I just set, img tag style attribute display to none, like this

$(this).attr("src","").css("display", "none");

It will hide the image. I hope, it will temporarily work for you.


try remove image and append it again

jQuery('#another_div').children("img").remove()
jQuery('#another_div').append('<img>').attr("src",jQuery(this).prev('img').attr("src"));