Changing color of boxes

Hello Betty

first make sure your getting the right elements’ ids and using the right syntax.
second:

  • to change a box color on click you can do the following:
export function Box_click(event, $w) {
 //Add your code for this event here: 
        $w('#Box').style.backgroundColor = "#FFFFFF";
}
  • to hide elements on click:

export function element_click(event, $w) {
 //Add your code for this event here:
    $w('#element').hide(); 
}

  • to show elements on click:
export function element_click(event, $w) {
 //Add your code for this event here:
    $w('#element').show(); 
}

here’s some useful references:
-box style

  • hide & show

Best!
Massa