CHAPTER 4

image

DOM Manipulation with jQuery

In the previous chapter, we discussed traversing the Document Object Model (DOM) with jQuery, and now you have a better idea of the power of jQuery. This chapter will help you to understand the DOM manipulation, to make web pages more efficient. By the end of this chapter, you will be familiar with the following:

  • Editing appearance with jQuery CSS methods
  • Editing/changing an element’s attributes, contents, and position
  • Creating and inserting new DOM elements
  • Removing and cloning DOM elements
  • Working with dimensions

Editing Appearance with jQuery CSS Methods

The CSS methodsCSS methods offered by jQuery provide ...

Get Practical jQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.