How to install jQuery


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.


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.

Cloning a repository

You can clone a repository from to your local computer.
Cloning with HTTPS URLs
git clone
Cloning with SSH URLs
git clone [email protected]:jquery/jquery.git
Cloning with GitHub CLI
gh repo clone jquery/jquery

Install via NPM package

Run the following command to locally install the package and its dependencies with NPM.
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 install jquery
  • 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.