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()

still not working, and im sure the answer is correct.

reach out to support and they said everything is working fine.

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

Adam Beer
Adam Beer
11,314 Points

You are doing great. Do not delete the previous solution. 2 lines must total. The first line $('.profile-text') and the second line $('.profile-header'). Hope this help.

Antti Lylander
Antti Lylander
9,686 Points

It is correct. I just passed it with copying your code. Did you keep the line from previous tasks?

omg~~~~!!!! hullaloya!!! thank you people of treehouse. ugh!!!. they really should be that in the hints, or description.

Adam Beer
Adam Beer
11,314 Points

Your welcome! Happy coding!