JSFiddle - React, Tailwind, and code Playground
HTML
Image:
<img src='https://www.google.com/images/srpr/logo3w.png'>
JavaScript
$('img').attr('src', '');
$('img').removeAttr('src');
Image:
<img src='https://www.google.com/images/srpr/logo3w.png'>
$('img').attr('src', '');
$('img').removeAttr('src');