@yisrael-wix I tryed, it says TypeError: $w(…).hide(…).$w is not a function. Can you possibly know why? p.s. Very much appreciated that you give your time to my problem
my code:
$w.onReady(() => {
$w(“#button1, #button2, #button3”).onClick(event => {
$w(“#image29”).hide(“fade”).
$w(“#myElement”).hide(“fade”)
.then( ( ) => {
let src;
switch (event.target.id) {
case “button1”:
src = “”;
break ;
case “button2”:
src = “;
break ;
case “button3”:
src = “”;
break ;
}
$w(”#image29").src = src;
$w(“#image29”).show(“fade”);
} );
})
})