O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

jQuery Pocket Reference

Book Description

"As someone who uses jQuery on a regular basis, it was surprising to discover how much of the library I’m not using. This book is indispensable for anyone who is serious about using jQuery for non-trivial applications."-- Raffaele Cecco, longtime developer of video games, including Cybernoid, Exolon, and Stormlord

jQuery is the "write less, do more" JavaScript library. Its powerful features and ease of use have made it the most popular client-side JavaScript framework for the Web. Ideal for JavaScript developers at all skill levels, this book is jQuery's trusty companion: the definitive "read less, learn more" guide to the library.

jQuery Pocket Reference explains everything you need to know about jQuery, completely and comprehensively. You'll learn how to:

  • Select and manipulate document elements
  • Alter document structure
  • Handle and trigger events
  • Create visual effects and animations
  • Script HTTP with Ajax utilities
  • Use jQuery's selectors and selection methods, utilities, plugins and more

The 25-page quick reference summarizes the library, listing all jQuery methods and functions, with signatures and descriptions.

Table of Contents

  1. A Note Regarding Supplemental Files
  2. Preface
  3. 1. Introduction to jQuery
    1. jQuery Basics
    2. The jQuery() Function
    3. Queries and Query Results
  4. 2. Element Getters and Setters
    1. Getting and Setting HTML Attributes
    2. Getting and Setting CSS Attributes
    3. Getting and Setting CSS Classes
    4. Getting and Setting HTML Form Values
    5. Getting and Setting Element Content
    6. Getting and Setting Element Geometry
    7. Getting and Setting Element Data
  5. 3. Altering Document Structure
    1. Inserting and Replacing Elements
    2. Copying Elements
    3. Wrapping Elements
    4. Deleting Elements
  6. 4. Events
    1. Simple Event Handler Registration
    2. jQuery Event Handlers
    3. The jQuery Event Object
    4. Advanced Event Handler Registration
    5. Deregistering Event Handlers
    6. Triggering Events
    7. Custom Events
    8. Live Events
  7. 5. Animated Effects
    1. Simple Effects
    2. Custom Animations
      1. The Animation Properties Object
      2. The Animation Options Object
    3. Canceling, Delaying, and Queuing Effects
  8. 6. Ajax
    1. The load() Method
    2. Ajax Utility Functions
      1. jQuery.getScript()
      2. jQuery.getJSON()
      3. jQuery.get() and jQuery.post()
    3. The jQuery.ajax() Function
      1. Common Options
      2. Callbacks
      3. Uncommon Options and Hooks
    4. Ajax Events
  9. 7. Utility Functions
  10. 8. Selectors and Selection Methods
    1. jQuery Selectors
      1. Simple Selectors
      2. Selector Combinations
      3. Selector Groups
    2. Selection Methods
      1. Using a Selection As Context
      2. Reverting to a Previous Selection
  11. 9. Extending jQuery with Plugins
  12. 10. The jQuery UI Library
  13. 11. jQuery Quick Reference
    1. Factory Function
    2. Selector Grammar
    3. Basic Methods and Properties
    4. Selection Methods
    5. Element Methods
    6. Insertion and Deletion Methods
    7. Event Methods
    8. Effects and Animation Methods
    9. Ajax Functions
    10. Utility Functions
  14. Index
  15. About the Author
  16. Copyright