Clear an IMG with jQuery
html, image, jquery
Solution
You would have to either remove the `<img>` element entirely or replace it with a different image (which could be a transparent gif).
Problem
I'm trying to remove the loaded image from a `<img>` element, but clearing or removing the src doesn't do it. What to do? HTML: ``` <img src='https://www.google.com/images/srpr/logo3w.png'> ``` JQUERY: ``` $('img').attr('src', ''); // Clear the src $('img').removeAttr('src'); // Remove the src ``` Image remains... fiddle: http://jsfiddle.net/6x9NZ/