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

JavaScript Interactive Web Pages with JavaScript Traversing and Manipulating the DOM with JavaScript Perfect

Burhanuddin Oanali
Burhanuddin Oanali
9,939 Points

Kindly help me with this code

I have written the to do application list in JQuery. Most of the code works perfectly however there are 2 issues.

1) Edit Task: The edit button works when the list item is in its original incomplete or complete task holder. The moment its marked checked and gets appended to the incomplete or complete task holder..the edit button stops working. The funny thing is edit task gets printed to the console log but the function is not executing.

2)if / else: bindTaskEvent function has and if and else statement because passing an argument to the function does not work for me. I tried to pass in a parameter of checkBoxEventHandler but when I call the function passing the value of complete or incomplete task the function gives me an error. This is what I did before I had to switch to if/else:

Hey there!

To get to the bottom of this we will need to see your code. You could put it in something like JSFiddle or codepen and post the link here, or you could checkout the "Markdown Cheatsheet"(the link for it is just above the post comment button) and see how to format code to post straight in the thread