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 Introducing jQuery Using text() and html()

code wont work

quiz keep saying i selected the wrong css selector. im sure this is right $('.profile-header').html('Student <span>Profile</span>'); but i dont know.

index.html
<!DOCTYPE html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
    <h1 class="profile-header"></h1>
    <p class="profile-text"></p>

    <script
    src="jquery-3.2.1.min.js"></script>
    <script src="app.js"></script>
</body>
</html>
app.js
$(".profile-header").html("Student <span>Profile</span>");

3 Answers

Alexander Solberg
Alexander Solberg
14,350 Points

Are your first and second task passing?

yup. im new at this, so im not sure if i was wrong, or is the quiz acting buggy. might be my cache. lol.

Alexander Solberg
Alexander Solberg
14,350 Points

It's very strange, I can't really tell why it isn't working.

Redo it one more time, and if it doesn't work, maybe contact support to see if it indeed is a bug. If it is, it might cause problems for you in future challenges, which would be a major bummer.

yea, i want to finish this track, so i can go right into react.js.