How to install jQuery

Created
Modified

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.

Installation

You can download the latest version of jQuery from the GitHub releases or use a jQuery CDN.

The following CDNs also host compressed and uncompressed versions of jQuery releases. Starting with jQuery 1.9 they may also host sourcemap files.

GitHub

Latest:2021-08-29 12:07:31
License:MIT License
Cloning with HTTPS URLs
git clone https://github.com/jquery/jquery.git
Cloning with SSH URLs
git clone [email protected]:jquery/jquery.git
Cloning with GitHub CLI
gh repo clone jquery/jquery

NPM

Version:3.6.0
Publish Time:2021-03-03 01:12:11
Unpacked Size:1.26 MB
Downloading and installing packages locally
npm i jquery
npm install jquery
yarn add jquery
Downloading and installing packages globally
npm i -g jquery
yarn global add jquery
Install Specific Version of a Package
npm install [email protected]
Bower
bower install jquery

For more information about jQuery see https://api.jquery.com/.

  • checkLightweight Footprint - Only 30kB minified and gzipped. Can also be included as an AMD module.
  • checkCSS3 Compliant - Supports CSS3 selectors to find elements as well as in style property manipulation.
  • checkCross-Browser - Chrome, Edge, Firefox, IE, Safari, Android, iOS, and more.