jquery
JavaScript library for DOM operations
Last updated 10 months 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.3.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.3.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 documention. 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.

require("jsdom").env("", function(err, window) {
	if (err) {
		console.error(err);
		return;
	}

	var $ = require("jquery")(window);
});

Current Tags

  • 3.3.1                                ...           beta (10 months ago)
  • 3.3.1                                ...           latest (10 months ago)

48 Versions

  • 3.3.1                                ...           10 months ago
  • 3.3.0                                ...           10 months ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 3.0.0-rc1                                ...           2 years ago
  • 2.2.4                                ...           2 years ago
  • 1.12.4                                ...           2 years ago
  • 2.2.3                                ...           3 years ago
  • 1.12.3                                ...           3 years ago
  • 2.2.2                                ...           3 years ago
  • 1.12.2                                ...           3 years ago
  • 2.2.1                                ...           3 years ago
  • 1.12.1                                ...           3 years ago
  • 3.0.0-beta1                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 1.12.0                                ...           3 years ago
  • 3.0.0-alpha1                                ...           3 years ago
  • 1.11.3                                ...           4 years ago
  • 2.1.4                                ...           4 years ago
  • 2.1.3                                ...           4 years ago
  • 1.11.2                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 1.9.1                                ...           4 years ago
  • 1.11.1                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 1.11.1-rc2                                ...           5 years ago
  • 2.1.1-rc2                                ...           5 years ago
  • 1.11.1-rc1                                ...           5 years ago
  • 2.1.1-rc1                                ...           5 years ago
  • 1.11.1-beta1                                ...           5 years ago
  • 2.1.1-beta1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 1.11.0                                ...           5 years ago
  • 2.1.0-rc1                                ...           5 years ago
  • 1.11.0-rc1                                ...           5 years ago
  • 1.11.0-beta3                                ...           5 years ago
  • 2.1.0-beta3                                ...           5 years ago
  • 2.1.0-beta2                                ...           5 years ago
  • 1.8.3 [deprecated]           ...           6 years ago
  • 1.8.2 [deprecated]           ...           6 years ago
  • 1.7.3 [deprecated]           ...           6 years ago
  • 1.7.2 [deprecated]           ...           7 years ago
  • 1.6.3 [deprecated]           ...           7 years ago
  • 1.6.2 [deprecated]           ...           7 years ago
  • 1.5.1 [deprecated]           ...           8 years ago
Downloads
Today 1,773
This Week 7,209
This Month 39,721
Last Day 5,436
Last Week 24,080
Last Month 111,218
Dependencies (0)
None
Dependents (12804)