Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Adam maitland
Courses Plus Student 211 PointsHaving a problem with an on click toggle function (JAVASCRIPT)
Hello,
I have been working on a simple todo list web app Im trying to add a feature so when you tick an item as complete you can then un-tick the item.
I have done this by adding a function to an on click event but for some reason when you add a few items to the list you have to double click to get the item to be ticked off. This only happens to some of the list items.
Here is the link to the site http://adammaitland.co.uk/tado(1)//index.php
I have added a console.log that prints out the click count in the console