jQuery and the document object model

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 elements
  • html(): This sets or returns the content of the selected elements
  • val(): This sets or returns the values of form fields
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.49.247