The DOM defines a standard for accessing HTML and XML documents:
"The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
The following are some ways of DOM manipulation in jQuery:
text()
: This sets or returns the text content of the selected elementshtml()
: This sets or returns the content of the selected elementsval()
: This sets or returns the values of form fields18.116.49.247