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 trialBryan Peters
11,996 PointsjQuery: The ____ method sets the value of an attribute to its default.
The final quiz for this lesson has the fill-in-the-blank question: The ____ method sets the value of an attribute to its default.
I can't find this anywhere in the video, I went back and checked the transcritps and teacher notes. I imagine it has something to do with .attr(), but I can't find any examples of setting an attribute to it's 'default'. I've passed the quiz, but this missed question is still bugging me.
6 Answers
Bryan Peters
11,996 PointsNever mind - it was removeAttr()
Herman Brummer
6,414 PointsThey seem to ask a lot of questions about stuff that has not been covered yet. Way too much and way too fast.
robertmills2
Courses Plus Student 14,965 PointsJust like in the JavaScript lessons when we where creating quizzes, sometimes there are bugs. I used a dot before remove, just like it was shown in the jq api. The quiz did not like that, [input !== to removeattr()]. So If anyone thinks "what's going on", do not get discouraged just remove the dot in front of removeattr(). I Learned a lot tracking down this. Made me spend some time reading through the docs.
David Soards
18,368 Pointsi also put the dot before removeAttr() and got a "Bummer!"
I'm not feeling how this teacher doesn't type out the code. I'm going to have to check out the old 5 hour long jquery basics course.
ammarkhan
Front End Web Development Techdegree Student 21,661 Pointsi thought it was e.preventDefault().
Jemaine Brown
5,214 PointsI was having the same problem. I thought it was just me. I looked up the removeAttr() method at api.jquery.com, and it didn't say anything about a default value. Maybe the default value is "nothing" since it removes an attribute.
Paul Coleman
7,945 PointsSame!!! i hate this jquery course here
dede hurren
11,535 Pointsdede hurren
11,535 PointsThanks for that, I was also trying attr() and i was driving me mad!
Lucas Brown
Courses Plus Student 11,225 PointsLucas Brown
Courses Plus Student 11,225 PointsRan into this issue as well, thanks!