jQuery is neither a Server-Side Language nor a Scripting Language, it is a JavaScript library that is a Client-Side Scripting Language.
Before you start studying jQuery, you should have a basic knowledge of:
We can Adding animated effects to elements. with jQuery we can easily add effects such as fading in/out, sliding in/out, etc.
Making Ajax requests. These use JavaScript to request additional data from the Web server without having to reload the page.
Manipulating the DOM. We can easily add, remove, and reorder content in the Web page using just a couple of lines of code.
Open Source
Effects and Animations
JSON Parsing
HTML Manipulation
Cross-Browser Support
Extensibility Through Plug-ins
DOM Manipulation
Utilities
CSS Manipulation
AJAX
Speed
lightweight Library
There are lots of other JavaScript libraries out there, but jQuery is probably the most popular, and also the most extendable.
Many of the biggest companies on the Web use jQuery, such as:
IBM
Netflix
Microsoft
jQuery was developed by John Rising in 2006, jQuery plays an important role in Web Designing, Animation can also be done using jQuery.
jQuery is a fairly lightweight library of JavaScript, so there is a Pre-Define Library to use. There are 2 ways to use this library:
By local path, it means that you can use it by downloading it on Local Computer and you can download it from the link given below.
From the above link, you can download the latest version of jQuery. By clicking on this link, you will reach the official website of jQuery.
So, now we know how to implement jQuery in HTML. For example, our file name is jquery.js, we will include it in the webpage, in the example below we can see.
<!DOCTYPE html>
<html>
<head>
<title>How to include jquery library</title>
<script type="text/javascript" src="jquery.js"></script>
</head>
<body>
<h1>How to include jquery library</h1>
</body>
</html>
This is another way to use the jQuery library using a CDN. The library does not exist on a local computer. To use it, we have to provide on our webpage the CDN Path of the library that has its library and the jQuery library can be used by using that CDN Path. In the following example, we can see
If you don’t want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
Google CDN:
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
JavaScript is a Scripting Language, while jQuery is a JavaScript Framework.
jQuery is built to make Coding easier in JavaScript.
it was created to avoid complex coding in JavaScript.
it’s a very popular framework. It is used by almost all web developers because it makes many complex tasks of web designing easy.
With the help of jQuery, we can find out whether a browser supports any features or not.
Data can be loaded from the server without refreshing the webpage on the browser using AJAX in jQuery
The jQuery syntax is built up for selecting HTML elements and performing some action on the element(*).
jQuery Basic syntax is: $(selector).action()
A $ sign to define/access jQuery
A (selector) to “query (or find)” HTML elements
A Query action() to be performed on the element(*)
We hope you liked this article ( What is jQuery ). You must keep your thoughts about this in the comment below and share this article with your friends.