
Explore jQuery to streamline JavaScript development, simplify cross-browser boilerplate, and manipulate the DOM with add and remove operations, event handling, and practical frontend techniques.
Explore jQuery, a javascript utility library that simplifies interacting with the document object model. Learn how it builds on vanilla javascript to handle variables, functions, arrays, objects, and cross-browser issues.
Master basic jQuery selectors by using the dollar sign, selecting paragraphs and headers, targeting by id or class, and combining selectors with commas to reach multiple elements.
Cache selector results for repeated queries, such as paragraph tags and list items, to avoid repeated DOM lookups; use non-live queries and re-run when the DOM changes, improving performance.
Learn how jQuery method chaining lets you apply css, text, and width changes to all elements in the same selection, updating them in one fluent sequence.
Explore jQuery polymorphism by passing strings or new html elements to the dollar sign, cloning or creating elements in memory, then chaining css to color and appending to a list.
Select and manipulate with the with method to set width or height; use the cssa method to set multiple css properties via an object, including color, border, and font size.
Explore jQuery animation effects, including show, hide, fade, slide, and toggle, and learn to customize animations with the animate method and a duration for properties like width and padding.
Modify element classes with shortcut Cinquera methods, define a new class selector 'my class', and apply red color, 1px solid black border, and gray background to h1 and paragraphs.
Learn how to manipulate element attributes with jQuery's attr method by selecting all anchor tags, changing href to Google, and retrieving attribute values when only one argument is provided.
Explore how to edit page content with jQuery by using text, html, and val methods; select elements with each, modify content, and retrieve values from inputs and anchors.
Learn to manipulate and select elements with jQuery, create new elements, and append or prepend them to a list, including before and after insertions.
Use jQuery's clone method to duplicate a list in memory, then attach the clone to the DOM with after, append, or prepend, and verify with a console log.
Remove elements in jQuery using remove and empty. Select targets such as h1 or list items, then remove them from their parent or empty the list.
Explore creating and manipulating elements with the jQuery dollar sign, including in-memory elements, brand-new elements as query objects, and chaining css to color red before appending to a list.
Learn how Handlebars templates solve separation of concerns by compiling HTML templates with JavaScript and appending them to the DOM, using Handlebars alongside jQuery for lightweight client-side templating.
Learn to set up Handlebars with jQuery, create Handlebars templates in script tags, compile them, and render dynamic content by appending results to the page.
Create dynamic templates with Handlebars by defining a context object and mapping keys like name and color to template variables, then compile and render content to the page.
Reuse compiled handlebars templates by passing different contexts in JavaScript, rendering multiple items without recompiling, and appending results to produce dynamic, data-driven content.
Explore Handlebars templating with variables and helpers, including looping over arrays and using the if helper. See how to print paragraphs when a variable exists and reuse variables across contexts.
Learn how jQuery handles events by attaching a click listener to a button, using on with document ready, and preventing default behavior or using return false to stop it.
Learn how deligated events in jQuery use the on method on a static document to handle clicks on dynamically added buttons.
Explore how jQuery handles common events—clicks, mouse move, mouseover and mouseout, mousedown and mouseup, keydown for enter, scroll, resize, and form or anchor submission with prevent default.
Explore how jQuery traverses the DOM to act on the clicked element using context, with techniques like closest, find, children, and siblings, demonstrated on modular divs containing headings and buttons.
Complete the Introduction to jQuery course and recognize how online learning builds personal and professional connections that prepare you for software development careers.
In this course we cover the basics of jQuery including effects, manipulation, dynamic creation of elements, and interaction events. While Javascript is a very powerful language, we often have to write a lot of boilerplate code to work with different browsers. jQuery abstracts some of that logic away from us, so that we have more utilitarian functions that we can work with. Essentially, it’s a library that boosts Javascript front-end development.
We’ll explore jQuery to add and remove elements from the Document Object Model (DOM), we’ll look at event handling, and look at some other techniques that jQuery allows us to use that will make our development a bit easier.
Course Includes:
What You'll Learn: