4. Manipulating DOM Elements

Adding, changing, and removing elements from your web pages based on user interactions is one of the coolest things you can do with jQuery. The library is deep, with lots of functions you can apply to your web pages to achieve dramatic effects.

In many of the exercises prior to this chapter, you’ve used the css() method to create styles on the fly. In this chapter, you’ll take it a couple of steps further using CSS height, width, and position properties. You’ve also used the html() method to add error messages when form elements were not ...

Get jQuery and jQuery UI: Visual QuickStart Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.