jQuery Download


How To use Jquery?

There are two ways to use jQuery.

  • Local installation
  • CDN Based Version

Local installation

Go to the official website to download the latest version available.

Now, insert the downloaded js file in a directory of your website.

Example

<html> 
	<head> 
		<title>The jQuery Example</title> 
		<script type="text/javascript" src="/jquery/jquery-1.12.4.min.js"></script> 
		<script type="text/javascript"> 
		$(document).ready(function(){ 
			document.write("Hello, World!"); 
		}); 
		</script> 
	</head> 
	<body> 
		<h1>Hello</h1> 
	</body>
</html>

CDN Based Version

The jQuery library can be included in your HTML code directly from the Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version. We are currently using the Google CDN version of the library throughout this tutorial.

Example

<html> 
	<head> 
		<title>The jQuery Example</title> 
		<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script> 
		<script type="text/javascript"> 
		$(document).ready(function(){ 
			document.write("Hello, World!"); 
		}); 
		</script> 
	</head> 
	<body> 
		<h1>Hello</h1> 
	</body>
</html>