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 jQuery Basics Working with jQuery Collections Adding/Removing Classes

possible bug?

The error seems to be correct but it doesn't pass when clicking the "check work" button.

Am I doing something wrong?

please show us a little of your code , thanks :)

Check my answer it will work for you

1 Answer

var $submit=$('.submit-btn');

You need to create a variable with name $submit and store the class reference of the submit button

$submit.attr("disabled",true);

then you need to hide the submit with disabled attribute