jQuery is a lightweight, "write less, do more", JavaScript library.
The purpose of jQuery is to make it much easier to use JavaScript on your website.
jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.
jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM manipulation.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
Basic syntax is: $(selector).action()
You might have noticed that all jQuery methods in our examples, are inside a document ready event:
$(document).ready(function(){
// jQuery methods go here...
});
$(function(){
// jQuery methods go here...
});
$(this).hide() - hides the current element.
$("p").hide() - hides all elements.
::: https://youtu.be/HE_4DjvvJGs
Example:
RunCode/////////// SourceCode
:::https://youtu.be/Pw9i4H2PsYI
All the different visitors' actions that a web page can respond to are called events.
An event represents the precise moment when something happens.
Examples:
moving a mouse over an element
selecting a radio button
clicking on an element
Example:
RunCode/////////// SourceCode
::part-1: https://youtu.be/wV08YuMpzCA
::part-2: https://youtu.be/L0rfjYdvWzg
::part-3: https://youtu.be/B3q0FPB8R3w
Example:
RunCode/////////// SourceCode
::: https://youtu.be/OoCZBg1HY_M
Example:
RunCode/////////// SourceCode
::: https://youtu.be/vkPULgC8Ulo
Example:
RunCode/////////// SourceCode
::: https://youtu.be/RrSgsSqvZVw
Example:
RunCode/////////// SourceCode
::: https://youtu.be/pgs_boB89Xo
Example:
RunCode/////////// SourceCode
::: https://youtu.be/gQbdc_bmA3s
Example:
RunCode/////////// SourceCode
::: https://youtu.be/IJ08Bn0Ca5Y
Example:
RunCode/////////// SourceCode
::: https://youtu.be/yxTCE5I_dos
Example:
RunCode/////////// SourceCode
::: https://youtu.be/_Svt22ozoYg
Example:
RunCode/////////// SourceCode
::: https://youtu.be/YaiEIASC2Uw
Example:
RunCode/////////// SourceCode
::: https://youtu.be/PTM-yl4qqfc
Example:
RunCode/////////// SourceCode
::: https://youtu.be/9VXj8yMpkcg
Example:
RunCode/////////// SourceCode
::: https://youtu.be/0qwTkW2CzH8
Example:
RunCode/////////// SourceCode
::: https://youtu.be/Dx3gV9nxt5o
Example:
RunCode/////////// SourceCode
::: https://youtu.be/LK2xOgaqPyc
Example: RunCode/////////// SourceCode
::: https://youtu.be/8wStwd56BOA
π The <div> element is the parent of <ul>, and an ancestor of everything inside of it
π The <ul> element is the parent of both <li> elements, and a child of <div>
π The <li> element is the parent of <span>, child of <ul> and a descendant of <div>
π The two left and right <span> element is a child of the <li> and a descendant of <ul> and <div>
π left and right <span> are siblings childs which is childs of its same parent <li>
:::https://youtu.be/b_EVovod_Mk
Example:
RunCode///////////
SourceCode
::: https://youtu.be/4DNmreUSTaU
Example:
RunCode///////////
SourceCode
::: https://youtu.be/BNVozn6BqWg
Example:
RunCode/////////// SourceCode
Jquery Filtering : in which allow you to select a specific element based on its position in a group of elements.
Example:
RunCode/////////// SourceCode