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

$(".profile-header").html("Student <span>Profile</span>"); hello! any suggestions on what I am missing? Thank you!!!

keeps saying task 1 no longer passing and I am not sure what I am dong wrong if anyone has any suggestions or help thank you very much!

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>");

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! The first two tasks require that you select the paragraph element and change the text. That element has a class of profile-text. The line of code that completes the first two tasks is now missing entirely from your code. These tasks are cumulative. Unless otherwise specified, you should leave the code from the preceding tasks in place.

Hope this helps! :sparkles:

Hi! ok, Thank you so much for your help, I did try it that way too but I will try it again! I appreciate your quick response thanks!! :)