Response title
This is preview!




I also have 2-3 thumbnails photos on the page that when the user click on one of them the small thumbnail photo turn to be the mainPhoto.<img id='mainPhoto' src='../image/items/page1.jpg' style='position: relative; margin-left: auto; margin-right: auto; margin-top: -15px;'/>
And this is the jQuery code:<a href='../image/items/page1_01.jpg' data-ajax='false' class='thumbnail'><img src='../image/items/page_01.jpg'/></a>
<a href='../image/items/page1_02.jpg' data-ajax='false' class='thumbnail'><img src='../image/items/page_02.jpg'/></a>
Everything works great and the swapping of the photos is working on all the pages and photos.$(document).ready(function(){
$('.thumbnail').click(function(){
var mainImage = $(this).attr("href"); //Find Image Name
$("#mainPhoto").attr({ src: mainImage });
return false;
});
});
[ "Choice1", "Choice2" ]© 2012 jQuery Foundation
Sponsored by
and others.
