JQuery Modifying HTML Element 3

jquery

#1

here is the original page:

        Greetings
        Div #1
        Div #2

Here is my code:

$(document).ready(function(){
$("#one").after('<p>You can have whatever you like :stuck_out_tongue_winking_eye:<p>');
});

Here is the results:

        Greetings
        Div #1
        You can have whatever you like ;P
        Div #2

It works, Why do i get this message?

Oops, try again.
It looks like you added a <p> after the <div> with ID #two.


#2

Suggest remove the emoticon.

$(document).ready(function(){
    $("#one").after('<p>You can have whatever you like.<p>');
});

#3

It is still giving the same error


#4

My d'oh! The P is not closed in the above. </p>. My apologies.


#5

lol, ohhh, completely missed that :smiley: thanks