Hello everyone,
I was wondering if I could get some help with creating a code for my repeater.
I have very, very little experience with coding, the only thing I’ve done is copy and paste a code that lets me have hidden boxes that reveal when I mouse over some text.
Each text has a unique code ID that is tied to a box, for example #text1 reveals #box1, #text2 reveals #box2 and so on.
The code I am using for my hidden box + text combo is:
export function text1_mouseIn ( event ) {
//Add your code for this event here:
$w ( ‘#box1’ ). show ( “fade” , { “duration” : 300 });
}
export function text1_mouseOut ( event ) {
//Add your code for this event here:
$w ( ‘#box1’ ). hide ( “fade” , { “duration” : 300 });
}
The problem I’m having now is I have started to use repeaters and these texts that reveal the boxes are in the repeater. This means they all share the same code ID so now they are all #text1 and this makes it impossible for me to link each text to a different box.
I contacted WiX about this and they linked me to a repeater VELO page as well as 2 others and honestly I just can’t wrap my head around it.
So I was wondering if someone here can please help me in making the code to give unique code ID’s to items in a repeater.
Thanks