Problem with Toggle Switch Changing Section Background Color

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

1 Like