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 Introduction to jQuery Hello, jQuery! Making Selections with jQuery Review

Bryan Peters
Bryan Peters
11,996 Points

jQuery: 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
Bryan Peters
11,996 Points

Never mind - it was removeAttr()

dede hurren
dede hurren
11,535 Points

Thanks for that, I was also trying attr() and i was driving me mad!

Herman Brummer
Herman Brummer
6,414 Points

They seem to ask a lot of questions about stuff that has not been covered yet. Way too much and way too fast.

Just 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.

i 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.

i thought it was e.preventDefault().

Jemaine Brown
Jemaine Brown
5,214 Points

I 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.

Same!!! i hate this jquery course here