/ Published in: JavaScript

This two liner is powerful. It shows you how to find images on a page based on the source (src) and replace them with another image.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var img = $(".columnLeft").find("img[src='/path/to/existing/image/file.png']"); $(img).attr("src", "/path/to/new/image/file.png" );
Comments
