I\'m trying to remove the loaded image from a element, but clearing or removing the src doesn\'t do it. What to do?
HTML:
what about simply hiding an element:
$('img').hide();
You cannot remove an image from a tag. When you use jQuery, bear in mind that you do not deal with tags, you manupulate with DOM elements. Therefore, your tag in terms of jquery is not a tag, it is an object, a DOM element. And this is element is not a tag, IT IS an element that represents an image in DOM. So if you want to hide an image, you must hide the element.