Help finding my class using querySelectorAll

Can anyone explain what I’m doing wrong in finding my class in JS?

I keep getting
NodeList(0)

Essentially I want my Checkboxs to trigger update()


Here is my site Read-Only: https://preview.webflow.com/preview/matthews-spectacular-site-9b5578?utm_medium=preview_link&utm_source=designer&utm_content=matthews-spectacular-site-9b5578&preview=b5c9d7d5541c8eca7a5ab549bae2acc1&workflow=preview

Hey Matthew,

a simple but crucial detail: No matter how you write your Classes in Webflow, all classes in the code are always written in lower case.

Your JavaScript should therefore target .checkbox and not .Checkbox.
Change your code to let checkboxes = document.querySelectorAll('.checkbox'); and you’re good to go.

Cheers, Dennis :wave:

1 Like

Genius! Thanks so much!

1 Like