I have these variables:
let optionOne = $w ( “#btn1, #img1, #txt1” );
let optionTwo = $w ( “#btn2, #img2, #txt2” );
let optionThree = $w ( “#btn3, #img3, #txt3” );
I know I can hide the elements in the variables like this:
export function btn2_click(event) {
optionOne.hide();
optionThree.hide();
}
is there any way I can write the function like this? (this one isn’t working)
export function btn2_click ( event ) {
( “optionOne, optionThree” ). hide ;
}
I’m still a beginner. Thanks for your help!