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

Introduction to jQuery > Hello jQuery! > Making Selections with jQuery Review

Question asks: The __________________ method sets the value of an attribute to its default.

The instructor says this is the .removeAttr() method, but when I type it in the input box & click on the submit button, it tells me it's an incorrect answer. However, it's in the Video Transcript & it's what the instructor says in the audio.

How to I format the answer so that when I submit it, it will be accepted? It doesn't accept it as written above or "remove attribute."

4 Answers

Steven Parker
Steven Parker
229,732 Points

The quiz just wants the name of the method.

You had the right answer, but leave off the period and the parentheses and give just the name.

The fact that it doesn't accept the answer in all likely forms might be considered a bug in the quiz. You may want to submit a bug report following the instructions on the Support page.

Steven Parker:

Yes, I did try to type the answer without any "." or "()". It didn't accept it. I'll try it a few different ways & see what happens. This is the 1st time I've seen this problem. I should "Inspect Element" on the "input" box. Maybe that will give me a clue as to what's happening in it.

Steven Parker
Steven Parker
229,732 Points

I can assure you that just the name (with proper case) will satisfy the question. I even tried it by cutting the name from your question (without the punctuation, of course) and pasting it in.

Steven Parker:

I think I understand what your saying if you mean camelCase the answer.

Steven Parker
Steven Parker
229,732 Points

What's important is to get the function name correctly. And yes, the name of the function does happen to be in "camel case". The answer is exactly what you had the first time (what the instructor says) but without the punctuation.

Steven Parker:

O.K. Thanks.