JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://lydiafraserward.co.uk" id='imglink' full='<img border="0" src="http://lydiafraserward.co.uk/uploads/images/thumbs/1LostPictureShow.jpg" width="110" height="110">'>Rollover for image</a>

JavaScript

$( function() {
  $("#imglink").hover(
    function () {
      $(this).attr('small',$(this).html());
      $(this).html($(this).attr('full'));
    },
    function () {
       $(this).html($(this).attr('small'));
    }
  );
});