Mowing Elements around problem


#1


Please help. I dont get what is wrong.

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


Errror message : Oops, try again. It looks like your <p> is still after the <div> with ID #one.


. $(document).ready(function() {
    $('#one').after('<p>Y</p>');
    var $two = $('#two');
    
    ($two).after();
    });


#2

you should remove the paragraph after #one, so remove this line:

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

then here:

var $two = $('#two');

variable names can't have dollar signs in there name, given jquery uses them for selectors.

then add the paragraph after two


#3

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