I am stuck. I have used CSS to produce an input field with a background colour. I have added this to the innerHTML of the element. I would like the colour to change to green if the correct number is inputted into the field or red if the number is incorrect, once the button is clicked. My function does not sadly work. The element background will change to red (although not green) but not the background of the field.
If anyone with a bigger brain can help, I would be hugely grateful.
Simonchangeinputfieldbackgroundcolour.hype.zip (8.9 KB)