I’m trying to use a toggle switch to change the background color of a specific section on my Wix page. However, I’m facing some challenges getting it to work.
With this code, I expect the background color of the section with ID #section8 to change based on the status of the toggle switch with ID #switch1. However, the section’s background color doesn’t change when I toggle the switch.
Has anyone encountered a similar issue or have any suggestions on how I might resolve this? Your guidance would be much appreciated!
great.
I found the same issue with sections. I says the .style does not exist on HiddenCollaspedElement. Even though it is not hidden or collapsed.
A container stretched will do the same function.