I don't understand "add a new line below your code to move your p tag after the div with id #one"


#1

Hi, I don't understand the first indication: add a new line below your code to move your p tag after the div with id #one
the line is already there, isn't it?
I just deleted the line for the div #id and to write a new one for #two and it works. Am I wrong?


Step 4, why am I getting this error?
#2

Hi Dorelian,

Yes - you need to leave the original code alone, and only add in your own code :slight_smile:

If you're still having trouble, please post a link to the exercise you're on and your code :slight_smile:


#3

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

$(document).ready(function() {
$('#one').after('

himmiherrgottsakramentwasguckstdu

');
$('#two').after('

himmiherrgottsakramentwasguckstdu

');
});

#4

@dorelian Good - now, instead of adding in another <p> tag with text in it after #two, you need to move the first one around. You can do that by selecting the <p> tag with jQuery inside after().

Hint

Like this -

$('#two').after($('p'));

:wink:


Also, this should help you with formatting your code so we can see it :slight_smile:


#5

I understood after I saw your hint. Thanks again