JavaScript jQuery Basics Working with jQuery Collections Adding/Removing Classes

Josh Miller
Josh Miller
2,731 Points

possible bug?

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

Am I doing something wrong?

Sam Gord
Sam Gord
14,059 Points

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

1 Answer

HIDAYATULLAH ARGHANDABI
HIDAYATULLAH ARGHANDABI
20,991 Points
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