jquery / 3.1.0 last updated 24 days ago created on Mar 19th 2011

Install

npm install --save jquery

Clone

git clone git@github.com:jquery/jquery.git

dependencies

No dependencies listed.

maintainers

dmethvin
scott.gonzalez
m_gol
timmywil

versions 43 total

3.1.0 24 days ago timmywil
3.0.0 2 months ago timmywil
3.0.0-rc1 2 months ago timmywil
3.0.0-beta1 7 months ago timmywil
3.0.0-alpha1 a year ago timmywil
2.2.4 2 months ago timmywil
2.2.3 4 months ago timmywil
2.2.2 4 months ago timmywil
2.2.1 5 months ago timmywil
2.2.0 7 months ago timmywil
2.1.4 a year ago timmywil
2.1.3 2 years ago m_gol
2.1.2 2 years ago dmethvin
2.1.1 2 years ago dmethvin
2.1.1-rc2 2 years ago dmethvin
2.1.1-rc1 2 years ago m_gol
2.1.1-beta1 2 years ago m_gol
2.1.0 3 years ago jquery
2.1.0-rc1 3 years ago scott.gonzalez
2.1.0-beta3 3 years ago jquery
2.1.0-beta2 3 years ago jquery
1.12.4 2 months ago timmywil
1.12.3 4 months ago timmywil
1.12.2 4 months ago timmywil
1.12.1 5 months ago timmywil
1.12.0 7 months ago timmywil
1.11.3 a year ago timmywil
1.11.2 2 years ago dmethvin
1.11.1 2 years ago dmethvin
1.11.1-rc2 2 years ago dmethvin
1.11.1-rc1 2 years ago m_gol
1.11.1-beta1 2 years ago m_gol
1.11.0 3 years ago jquery
1.11.0-rc1 3 years ago jquery
1.11.0-beta3 3 years ago jquery
1.9.1 2 years ago timmywil
1.8.3 4 years ago treasonx
1.8.2 4 years ago treasonx
1.7.3 4 years ago anonymous
1.7.2 4 years ago treasonx
1.6.3 5 years ago anonymous
1.6.2 5 years ago anonymous
1.5.1 5 years ago anonymous
25617 Downloads yesterday.

readme

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.

Including jQuery

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

Browser

Script tag

<script src="https://code.jquery.com/jquery-2.2.0.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.

1
2
3
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.

1
2
3
4
5
6
7
8
require("jsdom").env("", function(err, window) {
    if (err) {
        console.error(err);
        return;
    }

    var $ = require("jquery")(window);
});
Resolving all dependencies.. This could take a while as our cache is not yet fully warmed up.