Possible bug JQUERY Section 3: Before and After


#1



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


Unless I am just too tired to pinpoint my error, I cannot find anything that is inconsistent with the correct syntax in Jquery, for selecting #one id, using the after(); method, to insert

some text

.
Oops, try again.
It looks like you didn't insert your <p> after the <div> with ID #one.

Thank you for considering the bug or checking my poor pattern recognition skills :wink:.


$('#one').after('<p>Test</p>');


#2

Figured out I need $(document).ready(function(){
//codehere

});

Thanks anways!


#3

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