JavaScript jQuery Basics Working with jQuery Collections Adding/Removing Classes

dont know

i don't understand where im going wrong

<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="style.css">
    <button type="submit" class="submit-btn">Submit If You Can</button>

    <script src="app.js"></script>
const $submit = $('.submit-btn');
$submit.attr( 'disabled', true ).addClass('.disabled');

1 Answer

Steven Parker
Steven Parker
203,218 Points

When naming a class in a class-specific operation, use only the class name.

The period prefix is only used to designate a class when used as a CSS-style selector.