Modifying content - looks correct but getting error


#1



https://www.codecademy.com/courses/web-beginner-en-v6phg/1/4?curriculum_id=50a3fad8c7a770b5fd0007a1


I'm getting this error: Oops, try again. It looks like your paragraph's text isn't 'jQuery magic in action!'


Replace this line with your code. 
$(document).ready(function() {
    $("div").html("jQuery magic in action!");
});


#2

just figured it out :persevere: "div" is supposed to be "p"


#3

Hey @sylvia_a_lowdensbcgl,
check the Oops-message.

"It looks like your paragraph's text isn't 'jQuery magic in action!'"...

Conclusion:
Change the $('div').html("jQuery magic in action!"); into $('p').html(...) and it should work.

Hope that will help you :slight_smile:


EDIT: Oh, you already found out the issue on your own :smiley:


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.