jquery
JavaScript library for DOM operations
Last updated 2 years ago by timmywil .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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.6.4. 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.6.4.min.js"></script>

Webpack / Browserify / Babel

There are several ways to use Webpack, Browserify or Babel. 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:

import $ from "jquery";

If you need to use jQuery in a file that's not an ECMAScript module, you can use the CommonJS syntax:

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.6.4                                ...           beta (2 years ago)
  • 3.6.4                                ...           latest (2 years ago)

57 Versions

  • 3.6.4                                ...           2 years ago
  • 3.6.3                                ...           2 years ago
  • 3.6.2                                ...           2 years ago
  • 3.6.1                                ...           2 years ago
  • 3.6.0                                ...           4 years ago
  • 3.5.1                                ...           5 years ago
  • 3.5.0                                ...           5 years ago
  • 3.4.1                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.1                                ...           7 years ago
  • 3.3.0                                ...           7 years ago
  • 3.2.1                                ...           8 years ago
  • 3.2.0                                ...           8 years ago
  • 3.1.1                                ...           8 years ago
  • 3.1.0                                ...           8 years ago
  • 3.0.0                                ...           9 years ago
  • 3.0.0-rc1                                ...           9 years ago
  • 2.2.4                                ...           9 years ago
  • 1.12.4                                ...           9 years ago
  • 2.2.3                                ...           9 years ago
  • 1.12.3                                ...           9 years ago
  • 2.2.2                                ...           9 years ago
  • 1.12.2                                ...           9 years ago
  • 2.2.1                                ...           9 years ago
  • 1.12.1                                ...           9 years ago
  • 3.0.0-beta1                                ...           9 years ago
  • 2.2.0                                ...           9 years ago
  • 1.12.0                                ...           9 years ago
  • 3.0.0-alpha1                                ...           9 years ago
  • 1.11.3                                ...           10 years ago
  • 2.1.4                                ...           10 years ago
  • 2.1.3                                ...           10 years ago
  • 1.11.2                                ...           10 years ago
  • 2.1.2                                ...           10 years ago
  • 1.9.1                                ...           10 years ago
  • 1.11.1                                ...           11 years ago
  • 2.1.1                                ...           11 years ago
  • 1.11.1-rc2                                ...           11 years ago
  • 2.1.1-rc2                                ...           11 years ago
  • 1.11.1-rc1                                ...           11 years ago
  • 2.1.1-rc1                                ...           11 years ago
  • 1.11.1-beta1                                ...           11 years ago
  • 2.1.1-beta1                                ...           11 years ago
  • 2.1.0                                ...           11 years ago
  • 1.11.0                                ...           11 years ago
  • 2.1.0-rc1                                ...           11 years ago
  • 1.11.0-rc1                                ...           11 years ago
  • 1.11.0-beta3                                ...           11 years ago
  • 2.1.0-beta3                                ...           11 years ago
  • 2.1.0-beta2                                ...           11 years ago
  • 1.8.3 [deprecated]           ...           12 years ago
  • 1.8.2 [deprecated]           ...           12 years ago
  • 1.7.3 [deprecated]           ...           12 years ago
  • 1.7.2 [deprecated]           ...           13 years ago
  • 1.6.3 [deprecated]           ...           13 years ago
  • 1.6.2 [deprecated]           ...           13 years ago
  • 1.5.1 [deprecated]           ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 23
Last Day 0
Last Week 23
Last Month 0
Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |