Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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.