This informative video serves as a one-stop resource for mastering jQuery, one of the most popular JavaScript libraries in use today. Starting with an introduction to what jQuery is, the video moves on to explore foundational topics like jQuery fundamentals and selectors. From there, delve into more advanced areas including DOM Manipulation, altering DOM elements, and understanding jQuery-specific DOM elements. The video also provides a detailed overview of AJAX—how to execute AJAX requests and the various methods jQuery provides for AJAX interactions.
Topics covered:
What is jQuery?
jQuery Fundamentals
Selectors
DOM Manipulation
DOM Altering
jQuery DOM elements
AJAX
jQuery AJAX Methods
Executing AJAX Requests
Video (in Bulgarian)
Presentation Content
What is jQuery?
jQuery is a cross-browser JavaScript library
Designed to simplify the client-side scripting of HTML
The most popular JavaScript library in use today
Free, open source software
jQuery’s syntax is designed to make it easier to
Navigate a document and select DOM elements
Create animations
Handle events
jQuery also provides capabilities for developers to create plugins for
Low-level interaction and animation
Advanced effects and high-level, theme-able widgets
Creation of powerful and dynamic web pages
Microsoft adopted jQuery within Visual Studio
Uses in Microsoft’s ASP.NET AJAX Framework and ASP.NET MVC Framework
Why jQuery is So Popular?
Easy to learn
Fluent programming style
Easy to extend
You create new jQuery plugins by creating new JavaScript functions
Selection of DOM elements in jQuery is much like as in pure JavaScript
Selection of elements using CSS selectors $(selector)
Like querySelectorAll
//by tag
$("div") //document.querySelectorAll("div");//by class
$(".menu-item")
//document.querySelectorAll(".menu-item");//by id
$("#navigation")
//by combination of selectors
$("ul.menu li")
Selection with jQuery
Selecting items with jQuery
Almost always returns a collection of the items
Even if there is only one item
Can be stored in a variable or used right away
The usage of the elements is always the same, no matter whether a single or many elements
// select the item
$("#something").hide();
$(".widgets").fade(1);