4/14 heeeelllppppp

$(document).ready(function() {



Your code is correct up to line 3. What we need to do is first select '#two' and then insert the earlier created paragraph node which we also need to select:


Note that we are using a P-node selector to target that paragraph. Being the only one in the document for the present, it will move <p>hnhnoi</p> to just following <div id="two">Div #2</div>

Div #1
Div #2

A little difference to note, here:


selects all P-nodes in the document. (P-node is my way of saying paragraph element nodes.)


creates a P-node, but does not insert it into the DOM until we order it.

var $newPara = $('<p>').text('Hello!');

The page will now display,


and if we inspect the element, it will look like this,


and we will see that its parent element is <body></body>.


Please can someone tell me why I have message

"Oops, try again. It looks like you added more than one <p> ! ?

My code.

$(document).ready(function() {
$('#one').after('<p> test </p>');



I just tried executing your code and it did execute successfully. Refresh your page and try executing again. Hope it helps


Thank You !
I don't know why but i tried this before and finally now thats works.


thank you baby royyyyyyyyyyyyyyyyyyy