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 just 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 element
This is paragraph 1
This is paragraph 2
This is paragraph 3
This is paragraph 4
This is paragraph 5