I have an image with a hard-coded src in my html file, which I need to change when a button is clicked. The relative path I am using is ~/Content/Images/img.png, which displays fine. However, when a button is clicked, I have some jquery code intended to change that image, like such.
$("#response-img-" + (i + 1)).attr('src', img2.png);
This shows the default placeholder image, not my image. Any ideas how I can get this image to change?