Include CDN-Based Version of jQuery in HTML File



Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version.

You can try to run the following code to learn how to use Google CDN for jQuery:

Example

Live Demo

<html>
   <head>
      <title>jQuery CDN</title>
      <script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
       
      <script>
         $(document).ready(function(){
            document.write("Tutorialspoint!");
         });
      </script>
   </head>
   
   <body>
      <h2>Hello</h2>
   </body>
   
</html>
Updated on: 2020-06-12T07:15:34+05:30

527 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements