jQuery Tutorial
The jQuery tutorial gives both beginners and experts a deep understanding of jQuery technology. Our jQuery tutorial will help you learn the basics, an example, selectors, events, effects, traversing, CSS, and attributes.
Features
A JavaScript Library is what jQuery is.
jQuery makes programming in JavaScript much easier.
It’s easy to learn jQuery.
jQuery is what?
jQuery is a small JavaScript library that doesn’t take up much space.
jQuery works on all platforms.
“Write less, do more” is what jQuery means.
jQuery makes it easier to make AJAX calls and change the DOM.
What does jQuery do?
jQuery is a small JavaScript library that lets you “write less, do more.”
The goal of jQuery is to make using JavaScript on your website much easier.
jQuery turns a lot of common tasks that take a lot of lines of JavaScript code into methods that you can call with just one line of code.
A lot of the hard parts of JavaScript, like AJAX calls and DOM manipulation, are also made easier by jQuery.
The following are parts of the jQuery library:
HTML/DOM manipulation
CSS manipulation
HTML event methods
Effects and moving pictures
AJAX Utilities
Tip: jQuery also has add-ons for almost any job you can think of.
Why use jQuery?
There are a lot of other JavaScript libraries out there, but jQuery is probably the most popular and also the most flexible.
jQuery is used by many of the biggest companies on the Internet, such as:
Netflix, Google, IBM, and Microsoft
What you already should know
Before you start to learn about jQuery, you should know the basics of:
If you want to start by learning about these topics, you can find tutorials on our Home page.
jQuery Example
This tutorial has a lot of jQuery examples to help you understand the subject well. Let’s see a simple jQuery example.
<!DOCTYPE html>
<html>
<head>
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js”></script>
<script>
$(document).ready(function(){
$(“h2”).click(function(){
$(this).hide();
});});
</script>
</head>
<body><h2>If you click Here, I will disappear.</h2>
<p>Click me but i will not disappear!</p>
<h2>Click me too!</h2></body>
</html>