Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice DOM Manipulation: Checkboxes!
You have completed Practice DOM Manipulation: Checkboxes!
Preview
This video covers one solution to the challenge.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Don't worry if you didn't,
keep watching to see one solution, and
0:00
then go ahead and give it another try.
0:00
First I will grab the form element
from the DOM, and store it in a
0:02
variable named form
0:06
Next, I will attach a change
event listener to the form.
0:13
With this technique, the form listens for
changes in all the checkboxes.
0:16
Within the EventListener,
I am using the event.target property so
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up