Preface

This book covers version 1.4 of the jQuery library for client-side JavaScript programming. It is one chapter from my much longer book JavaScript: The Definitive Guide. jQuery is such a powerful library and so well suited to pocket reference format that it seemed worth publishing this material on its own.

This book assumes that you already know how to program with JavaScript, and that you are familiar with the basics of client-side JavaScript programming without jQuery. For example, you should know about DOM methods like getElementById(), getElementsByTagName(), and addEventListener().

Thanks to Raffaele Cecco for a timely and thorough review of the book and of the code it contains. Thanks also to John Resig and the entire jQuery team for creating such a useful library, to my editor Mike Loukides for his enthusiasm for this project, and to the O’Reilly production department for getting this book out so quickly.

The examples in this book can be downloaded from the book’s web page, which will also include errata if any errors are discovered after publication:

http://oreilly.com/catalog/0636920016182/

In general, you may use the examples in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. We appreciate, but do not require, an attribution like this: “From jQuery Pocket Reference by David Flanagan (O’Reilly). Copyright 2011 David Flanagan, 978-1-449-39722-7.” If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at .

To comment or ask technical questions about this book, send email to:

This book is also available from the Safari Books Online service. For full digital access to this book and others on similar topics from O’Reilly and other publishers, sign up at http://my.safaribooksonline.com.

Get jQuery Pocket Reference 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.