Skip to Main Content
Pro jQuery 2.0, Second Edition
book

Pro jQuery 2.0, Second Edition

by Adam Freeman
October 2013
Intermediate to advanced content levelIntermediate to advanced
1044 pages
24h 36m
English
Apress
Content preview from Pro jQuery 2.0, Second Edition

CHAPTER 11

image

Refactoring the Example: Part I

In the previous chapters, I showed you each functional area in isolation: how to deal with events, how to manipulate the DOM (Domain Object Model), and so on. The real power and flexibility of jQuery arise when you combine these features, and in this chapter, I am going to demonstrate the combination by refactoring the flower shop example document.

All of the changes that I make in this chapter are in the script element. I have not changed the underlying HTML of the example document. As with most jQuery features, there are many different routes to achieving the same result. The approaches I take in this ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beyond jQuery

Beyond jQuery

Ray Nicholus
jQuery UI

jQuery UI

Eric Sarrion

Publisher Resources

ISBN: 9781430263883Purchase book