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


My editmode is not working properly.. looks like all else is working fine.. Please help

I found errors using the console. However there are no more errors. Edit mode is not working. Could someone take a look? Here is the snapshot https://w.trhou.se/pea2rhg7oj

1 Answer

Hey again Andrew,

You just have an error in your query selector for the edit input inside of the editTask function. You have too many double quotes. You only need quotes surrounding the input and attribute selector like this:

//change editInput to this, with only quotes around the entire selector
var editInput = listItem.querySelector("input[type=text]");

Marcus you are the man! Finally through this part. I really wanted this a 100% because I can see a way to modify this on a project I'm working on. Thanks again!

Haha no problem, man! I'm glad you made it through :) Another thing to work on is having the word "Edit" change to "Save" when the input is out and then back to "Edit" when it's just the label.