jquery
JavaScript library for DOM operations
Last updated a month ago by timmywil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jquery 
SYNC missed versions from official npm registry.

jQuery

jQuery is a fast, small, and feature-rich JavaScript library.

For information on how to get started and how to use jQuery, please see jQuery's documentation. For source files and issues, please visit the jQuery repo.

If upgrading, please see the blog post for 3.5.1. This includes notable differences from the previous version and a more readable changelog.

Including jQuery

Below are some of the most common ways to include jQuery.

Browser

Script tag

<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

Babel

Babel is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.

import $ from "jquery";

Browserify/Webpack

There are several ways to use Browserify and Webpack. For more information on using these tools, please refer to the corresponding project's documentation. In the script, including jQuery will usually look like this...

var $ = require( "jquery" );

AMD (Asynchronous Module Definition)

AMD is a module format built for the browser. For more information, we recommend require.js' documentation.

define( [ "jquery" ], function( $ ) {

} );

Node

To include jQuery in Node, first install with npm.

npm install jquery

For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as jsdom. This can be useful for testing purposes.

const { JSDOM } = require( "jsdom" );
const { window } = new JSDOM( "" );
const $ = require( "jquery" )( window );

Current Tags

  • 3.5.1                                ...           beta (a month ago)
  • 3.5.1                                ...           latest (a month ago)

52 Versions

  • 3.5.1                                ...           a month ago
  • 3.5.0                                ...           2 months ago
  • 3.4.1                                ...           a year ago
  • 3.4.0                                ...           a year ago
  • 3.3.1                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.1                                ...           3 years ago
  • 3.2.0                                ...           3 years ago
  • 3.1.1                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 3.0.0-rc1                                ...           4 years ago
  • 2.2.4                                ...           4 years ago
  • 1.12.4                                ...           4 years ago
  • 2.2.3                                ...           4 years ago
  • 1.12.3                                ...           4 years ago
  • 2.2.2                                ...           4 years ago
  • 1.12.2                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 1.12.1                                ...           4 years ago
  • 3.0.0-beta1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 1.12.0                                ...           4 years ago
  • 3.0.0-alpha1                                ...           5 years ago
  • 1.11.3                                ...           5 years ago
  • 2.1.4                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
  • 1.11.2                                ...           5 years ago
  • 2.1.2                                ...           5 years ago
  • 1.9.1                                ...           6 years ago
  • 1.11.1                                ...           6 years ago
  • 2.1.1                                ...           6 years ago
  • 1.11.1-rc2                                ...           6 years ago
  • 2.1.1-rc2                                ...           6 years ago
  • 1.11.1-rc1                                ...           6 years ago
  • 2.1.1-rc1                                ...           6 years ago
  • 1.11.1-beta1                                ...           6 years ago
  • 2.1.1-beta1                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 1.11.0                                ...           6 years ago
  • 2.1.0-rc1                                ...           6 years ago
  • 1.11.0-rc1                                ...           6 years ago
  • 1.11.0-beta3                                ...           6 years ago
  • 2.1.0-beta3                                ...           6 years ago
  • 2.1.0-beta2                                ...           7 years ago
  • 1.8.3 [deprecated]           ...           7 years ago
  • 1.8.2 [deprecated]           ...           8 years ago
  • 1.7.3 [deprecated]           ...           8 years ago
  • 1.7.2 [deprecated]           ...           8 years ago
  • 1.6.3 [deprecated]           ...           9 years ago
  • 1.6.2 [deprecated]           ...           9 years ago
  • 1.5.1 [deprecated]           ...           9 years ago
Downloads
Today 1,240
This Week 61,774
This Month 274,719
Last Day 4,643
Last Week 63,018
Last Month 269,851
Dependencies (0)
None
Dependents (17749)