jQuery Cheat Sheet
|
This section documents jQuery 3.x (the current major line — no specific patch version is pinned). This content was generated with the assistance of AI and should be verified against the official jQuery API reference before being relied on in production, since API details and deprecations continue to change between releases. jQuery is legacy-leaning: modern browsers implement native equivalents for almost everything it does
( This section’s bibliography lists the reference material consulted while preparing these pages. |
A single-page, colour-coded summary of the jQuery essentials — loading jQuery from the CDN and the
document-ready pattern, the most common selectors, the traversal and filtering methods, DOM-manipulation
methods, class / css / attr / dimension methods, effects, .on() and the event object, .data() and the
static utilities, jQuery.ajax() and its shorthands, and a "jQuery to native" migration table — handy for
quick memorization or as a printable desk reference.
For the full explanation, every option, and additional examples, see the dedicated pages:
Core — Getting Started with jQuery.
Selecting and traversing — jQuery Selectors and Traversal and Chaining.
Changing the page — DOM Manipulation, CSS, Classes, Attributes and Dimensions, and Effects and Animation.
Behaviour — Event Handling and Element Data and Utility Functions.
Talking to the server — AJAX.
Beyond jQuery — Plugins and Modern Usage and Worked Example: An Interactive List.