Checkbox toggle question

Hi guys,

Hope you are well,

I want to toggle the background color of a checkbox when clicked,

Does anybody know what I should target in the javascript? I can’t seem to nail it down - I have made the whole checkbox element a big white rectangle with the checkbox and label inside!

Any help would be greatly appreciated!

Many thanks,

Ed

CSS is probably a better choice here.
IIRC there is a :checked pseudoselector you can use to style that background when the checkbox within it is/isn’t checked.