I am trying to replace an img path in jquery (injecting into a remote page)
replace example.com/thumbs
with ex
var newPath = $("img").attr("src").replace("thumbs", "images"); $("img").attr("src",newPath);