#4, It tells me to add a `<p>` after the `<div>` with ID `#two`


#1

4, It tells me to add a <p> after the <div> with ID #two -

This is my code:

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

and this is the code in the lesson:

    $('target').after('<tag>To add</tag>');

What am I doing wrong please?

jimmy


#2

If you want to add something after element with id #two you should start your code by selecting this element ($('#two')).


#3

Thanks for your reply. I made an error in typing the question here.

was to be added after divwith id #one only. Anyways I was able to complete the task after I added document.ready before the code:

  $(document).ready(function() {

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