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
Chris Sicam
4,482 PointsIn jQuery remove the class of 'error' from the input with the id of 'name'...Struggling with Form Validation and Manipulation in the Advanced "Building an Interactive Website section"
I'm not even sure where I'm supposed to be entering it...in the app.js file or the index.html in the script tag?
In jQuery remove the class of 'error' from the input with the id of 'name'
Here's what I have...
if(true) $(this).next().removeClass("error"); else $(this).next().removeClass("name");
Am I way off???
1 Answer
Shawn Denham
Python Development Techdegree Student 17,802 PointsYou are on the right track, but it looks like you are over thinking it a bit. Restart from scratch and revisit the question :)
The question is asking us to remove a class from an element with a specified id.
so first you want to select elements with the ID of 'name'.
next you want to remove the class 'error'.