On the left of my page I have a repeater with a couple of images from my CMS.
On the right of my page I have a large image.
Desired behavior:
If I click on one of the images from the repeater, the larger image on the right should change into that same image I clicked on.
I’m currently just trying:
$w('#Section1Repeater1').onItemReady( ($item, itemData, index) => {
$item('#Section1RepeaterItem1MediaImage1').onClick( (event) => {
$w("#image1").src = $w('#Section1RepeaterItem1MediaImage1').src
})
});
But with this code, the image on the right just changes to the default image, not to the specific image from that I clicked on.