JavaScript jQuery Basics Working with jQuery Collections Adding/Removing Classes

Adi Chayot
Adi Chayot
3,618 Points

can anybody find whats wrong? Thanks!

im having an error while submitting

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

    <script
    src="jquery-3.2.1.min.js"></script>
    <script src="app.js"></script>
</body>
</html>
app.js
const $submit = $('.submit-btn');
$submit.attr('disabled', 'true');

1 Answer

KRIS NIKOLAISEN
KRIS NIKOLAISEN
53,553 Points

true shouldn't be enclosed in quotes. That makes it a string instead of a boolean.