JQUERY
What is jQuery?
jQuery is the easiest and the most popular JavaScript
library.
A library is just a collection of tools that allows us to
implement functionality or effects without the need to
write all the code that is needed to perform a certain
task.
The purpose of jQuery is make it easier for you to use
JavaScript on your website.
jQuery is a light-weight javascript library which
means “write less, do more”.
jQuery library allows you to do following things:
HTML/DOM(Document Object Model) Manipulation.
CSS manipulation.
Provides event methods to trigger and respond to a
events on an html page such as mouse click, keypress
etc.
Simplifies AJAX calls.
There are two ways you can add jQuery to your
web pages.
1. Download the jQuery library from jQuery.com -
> Not recommended method.
2. Include jQuery to your project using the CDN
provided by Google, Microsoft etc -> Recommended
Method.
To download the jQuery visit this official page:
http://jquery.com/download/. Here you will find
two versions.
Place the downloaded jQuery file in the same
folder where you have placed all of your WebPages
and then add the reference to the jQuery file in head
section of every webpage like this:
<head>
<script src="jquery-3.4.0.min.js"></script>
</head>