Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
What if users make a mistake and want to remove a name? Let's add a button to each list item to delete it. We'll also move to a delegated click handler, to allow us to set one handler for all buttons.
Update
On line 13
, the statement should read as:
const checkbox = e.target; // vs. `event.target`
Although the video's code will work in Chrome, Edge, and most versions of Safari, it will not work in Firefox. A Reference Error
will be received as event
is not defined.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Gal Parselany
Full Stack JavaScript Techdegree Graduate 26,281 Points1 Answer
-
Stephen Acheson
7,412 Points2 Answers
-
Daniel Benisti
Front End Web Development Techdegree Graduate 22,224 Points0 Answers
-
Ryan Wikle
5,774 Points2 Answers
-
James Roberts
16,976 Points2 Answers
-
Muaaz Matwadia
Full Stack JavaScript Techdegree Graduate 19,327 Points1 Answer
-
Caleb Andruss
Full Stack JavaScript Techdegree Student 8,466 Points2 Answers
-
Jess D'Souza
Front End Web Development Techdegree Student 13,800 Points1 Answer
-
Konrad Dziekonski
7,798 Points4 Answers
-
Nebojsa Stevanovic
Full Stack JavaScript Techdegree Student 9,620 PointsWhy function createLI(text)
2 Answers
-
Ru Song
Front End Web Development Techdegree Graduate 13,845 Points2 Answers
-
michael edmondson
4,512 Points1 Answer
-
Juneau Lim
13,362 PointsThe li is not removed, only its contents(except text) are.
Posted by Juneau LimJuneau Lim
13,362 Points1 Answer
-
PLUS
Michael Williams
Courses Plus Student 8,059 Points2 Answers
-
James Barshaw
9,284 Points1 Answer
-
James Barshaw
9,284 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
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