have you tried using rgba colour instead
$w(“#myElement”).style.backgroundColor = “rgba(255,0,0,0.5)”;
also use ’ instead of " with your element eg (‘#switch1’)
also have a look here. it may help
have you tried using rgba colour instead
$w(“#myElement”).style.backgroundColor = “rgba(255,0,0,0.5)”;
also use ’ instead of " with your element eg (‘#switch1’)
also have a look here. it may help