JQuery makes the creation and manipulation of document content very easy. Rather than having to directly use the verbose DOM methods, you can roll several operations into a few function calls.
html(str)
: can be used to retrieve or set the html content of an elementtext(str)
: used to retrieve or set the text content of an elementThis is paragraph 1.
This is paragraph 2.
This is paragraph 3.
This is paragraph 4.
This is paragraph 5.