What is jQuery

Benefits of using jQuery

How to use jQuery in web application

The jQuery library is a JS file that a web devloper use for programming in jQuery for developing a web applicatin
There are two ways to use the file

Understanding the jQuery Syntax

$(selector).action()

where
$: Is the sign that indicate the use of jQuery and is the jQuery identifier.
Selector: Is used to find and select the HTML element or elements.
action(): Is an action that jQuery can performon the selected element or elements.

Following are the samples that indicate how to syntaxis used

The Document Ready Event

$(document).ready(function(){
// jQuery methods go here...
});


where
<html lang = "en">
<head>
<title> jQuery </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"> </script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("p").hide();
});
});
</script>
</head>
<body>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button>Click me to hide paragraphs</button>
</script>
</body>
</html>