JSFiddle - React, Tailwind, and code Playground

HTML

<img src='http://velocityagency.com/wp-content/uploads/2013/08/go.jpg' width='500' >

JavaScript

var newImage = 'http://velocityagency.com/wp-content/uploads/2013/08/go.jpg';

$(document).ready(function(){
    $("img").on("mouseenter", function(){
   console.log($(this).attr("src").indexOf("go"));
    path = "your path";
    if($(this).attr("src").indexOf("go.jpg") !== -1)
    {
       var att = $(this).attr("src");
       att = att.replace("go.jpg", "iPAd.jpg");
       $(this).attr("src", att);
    }
});
});