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

Rodrigo Bossan
Rodrigo Bossan
7,571 Points

I would like to know the answer to the quiz question: Which method changes the value for attr to it`s default.

Could not find the answer online.

2 Answers

Joel Bardsley
Joel Bardsley
31,246 Points

The answer is mentioned in this video: https://teamtreehouse.com/library/accessing-and-modifying-attributes - It doesn't have the most intuitive name for that purpose, but the answer is:

removeAttr()

Just remember to include the parentheses in your answer, otherwise it will mark it as incorrect.

Rodrigo Bossan
Rodrigo Bossan
7,571 Points

Oh thanks, I remember it now. Thanks again Joel

Joel Bardsley
Joel Bardsley
31,246 Points

No worries, enjoy the rest of your introduction to jQuery!