I feel like this should work for what you're looking for:
<script>
$(document).ready(function () {
$("img").attr("src", "");
});
</script>
It should replace the src
attributes in all <img>
tags.
You could also remove the src
attribute with $("img").removeAttr("src")
.
Something similar in javascript would be:
<script>
document.addEventListener("DOMContentLoaded", function (event) {
var images = document.getElementsByTagName("img");
for (var i = 0; i < images.length; i++) {
images[i].setAttribute("src", "");
}
});
</script>
Like in jquery, you can use images[i].removeAttribute("src")
to remove the html src
attribute altogether.
Both of these scripts are at the bottom of my html.
I don't know if this is exactly what you're looking for, but hopefully this helps.