I have a image I'd like to replace but...
<div class="news-thumb-wrapper">
<img src="/content/oldimage.jpg" class="attachment-post-thumbnail" height="150" width="600">
<div class="gallery-arrows"></div><h8><a href="/">Some text</a></h8></div>
I've used this code to try replace the entire img tag but it doesn't seem to work.
$( "img.attachment-post-thumbnail" ).replaceWith( "<img src="/content/newimage.png" class="attachment-post-thumbnail" height="41" width="600">" );
Could anyone please tell me what's wrong with the code?