I am trying to replace the img source of a given source using jQuery. For example, when the image src is smith.gif, replace to johnson.gif. If williams.gif replace to brown.
In my case, I replaced the src taq using:
$('#gmap_canvas').attr('src', newSrc);