HTML
<img src="http://jonathonleathers.com/images/germany-src.jpg"
srcset="http://jonathonleathers.com/images/germany-1x.jpg 1x,
http://jonathonleathers.com/images/germany-2x.jpg 2x"
alt="Germany"
id="photo-full">
<div class="thumbs">
<img src="http://jonathonleathers.com/images/germany-src-thumb.jpg"
srcset="http://jonathonleathers.com/images/germany-1x-thumb.jpg 1x,
http://jonathonleathers.com/images/germany-2x-thumb.jpg 2x"
alt="Germany"
data-full-src="http://jonathonleathers.com/images/germany-src.jpg"
data-full-srcset="http://jonathonleathers.com/images/germany-1x.jpg 1x,
http://jonathonleathers.com/images/germany-2x.jpg 2x">
<img src="http://jonathonleathers.com/images/hawaii-src-thumb.jpg"
srcset="http://jonathonleathers.com/images/hawaii-1x-thumb.jpg 1x,
http://jonathonleathers.com/images/hawaii-2x-thumb.jpg 2x"
alt="Hawaii"
data-full-src="http://jonathonleathers.com/images/hawaii-src.jpg"
data-full-srcset="http://jonathonleathers.com/images/hawaii-1x.jpg 1x,
http://jonathonleathers.com/images/hawaii-2x.jpg 2x">
</div>
JS
var $src = $(this).attr('data-full-src');
var $srcset = $(this).attr('data-full-srcset');
var $alt = $(this).attr('alt');
$('#photo-full').attr('src', $src);
$('#photo-full').attr('srcset', $srcset);
$('#photo-full').attr('alt', $alt);
for refrence http://codepen.io/jtleathers/pen/IGytf