Part2 in Modifying HTML elements


#1

(document).ready(function () {
$("

I'm a paragraph!

").appendTo("body");
});
`

and I am facing error like...Oops, try again. Make sure to use the .append() jQuery function to add your

to the body of your HTML document.

help me please.


#2

first of all you need a $ sign for

$( document ).ready(function() {
 
});

second the error massage

Oops, try again. Make sure to use the .append() jQuery function

so you should use .append() method not .appendTo() .

Both perform the same task. The difference is in the syntax .

see the example given above in your lesson


#3

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