jQuery is a venerable, fast, and feature-rich JavaScript library primarily designed for client-side HTML DOM traversal and manipulation, event handling, animation, and Ajax. The current stable version is 4.0.0, released in January 2026, following a multi-year development cycle for major versions, with minor patches and bug fixes occurring more frequently. It differentiates itself by providing a concise, cross-browser API, simplifying common web development tasks that were historically complex due to browser inconsistencies. While newer browser APIs have reduced its necessity for some tasks, it remains a widely used tool for projects requiring broad browser compatibility or leveraging its extensive plugin ecosystem.
npm install jqueryVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic DOM selection, event handling, AJAX (if full jQuery), CSS manipulation, animation, and dynamic content creation, showcasing jQuery's core features.
Upgrade browser targets or remain on jQuery 3.x if legacy browser support is critical. Consider using the jQuery Migrate plugin for transition assistance.
Replace removed APIs with their native JavaScript equivalents (e.g., `Array.isArray()`, `JSON.parse()`, `String.prototype.trim()`).
Review and retest any code that depends on the specific timing or order of focus/blur-related events.
For cross-domain requests, explicitly use CORS or set `dataType: "jsonp"` if JSONP is intended.
If Deferreds, Callbacks, or `$.ajax` are needed, use the full jQuery build. Migrate Deferred-based asynchronous logic to native Promises where possible for slim builds.
Use `const $ = require('jquery');` for CommonJS imports to correctly assign the jQuery object to the `$` variable.Ensure jQuery script tag is included before your script in HTML, or that `import { $ } from 'jquery';` is at the top of your ESM module.Switch to the full version of jQuery (e.g., `import { $ } from 'jquery';` instead of `jquery/slim`) if these features are required.Use `import { $ } from 'jquery';` for ESM contexts. Only use `require()` in CommonJS environments (Node.js without `type: "module"` in `package.json`).Replace with native JavaScript equivalents. For `$.isFunction`, use `typeof func === 'function'`.
No dependency data recorded yet.