latest jquery cdn code example

Example 1: jquery cdn

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

Example 2: jqeury cdn

//Note: This is for version 3.5.0. You can change it here \/
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>

Example 3: jquery cdn

<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>

Example 4: how to download jquery

You have quite a few options

You can get the whole source
Uncompressed dev: https://code.jquery.com/jquery-3.4.1.js
Compressed production: https://code.jquery.com/jquery-3.4.1.min.js
You the simply save the code into a Javascript file and include it in the usual way
<script type="text/javascript" src="jquery.js"></script>

Or point to a CDN, such as Google's
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

You can get it using NPM, Yarn or Bower
npm install jquery
yarn add jquery
bower install jquery

You can even get the latest builds from GitHub
git clone git://github.com/jquery/jquery.git

Example 5: jquery cdm

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

Example 6: cdn jquery

//cdn 
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js

//file compressed
https://code.jquery.com/jquery-3.6.0.min.js


//file uncompressed
https://code.jquery.com/jquery-3.6.0.js