I’ve got a larger slider image and a smaller “thumbnail” image. I have this code so far:
$j(".slider-img").each( function(){
var slideSource = $j(this).attr("src");
$j(".slider-thumb").each(function() {
$j(this).attr("src", slideSource);
});
});
But its giving me the image from the first slide for all of the thumbnails. So I want to take the source from each .slider-img and apply it to each .slider-thumb. Ideas?
Presuming the
.slider-imgthat corresponds to a.slider-thumbis in the same position in the document, relative to the others with that class, you can use this: