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 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.