Learn By Example: jQuery
4.5 (131 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,628 students enrolled

Learn By Example: jQuery

53 examples which form a step-by-step guide to master jQuery
4.5 (131 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
3,628 students enrolled
Created by Loony Corn
Last updated 12/2016
English [Auto-generated]
Current price: $64.99 Original price: $99.99 Discount: 35% off
21 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 7 hours on-demand video
  • 153 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Use jQuery with ease to add styles, animations, Ajax support and more to their websites
  • Use custom plugins to add common components to sites rather than re-inventing the wheel
  • Build their own stateless and stateful custom plugins in jQuery
  • Work with the jQuery UI library including the theme roller
Course content
Expand all 78 lectures 07:12:54
+ Introduction To jQuery
3 lectures 20:37

Why is it important to build a good website? What are the technologies involved?

Preview 07:44

Amongst all Javascript libraries available, jQuery stands alone. Simple, easy to use and adds so much with so little code!

Preview 08:08

A brief overview of the DOM before we dive into how jQuery works with it.

Preview 04:45
+ Install And Set Up
3 lectures 10:32

Get a web server running and set up your examples.

Npm and Http Server install
Download and set up jQuery
Set up examples used in this course
+ Selectors
7 lectures 47:17

Selectors are the backbone of jQuery. How do you choose the DOM elements that you want to manipulate?


Use the element name, class name and the element id to select DOM elements.

Example 2: Simple selectors

jQuery offers a rich variety of ways by which you can choose elements to perform actions on.

Example 3: More selectors
Example 4: Traversing The DOM
Example 5: Advanced selectors

You can also choose to write code to select DOM elements you're interested in. This is an advanced use case though.

Example 6: Select using functions - the filter() selector
+ Some Loose Ends
3 lectures 13:17

jQuery functions are concise precisely because they can be chained together. This example shows you the power of chaining.

Example 7: Chaining

This mode allows jQuery to play nice with other Javascript libraries by surrendering the $ variable to other libraries.

Example 8: jQuery in the no-conflict mode
Accessing native browser element
+ Event Handling
16 lectures 01:25:14
Example 9: Event handlers

All event handlers get an event object as an input argument. This holds meta information about the context in which the event occurred and is very useful.

The event object
Example 10: Accessing the event object properties

Understand how events are propagated in the browser and how jQuery abstracts away all the quirks of when to handle a event.

Event capture and bubble phases
Example 11: Multiple event handlers
Example 12: Passing data to event handlers

Hook up event handlers so that they fire only for the very first occurrence of an event.

Example 13: Listen just once
Example 14: Remove event handlers

Namespaces allow us to work on events in logical groups.

Example 15: Events in namespaces

Hook up events to elements which do not exist yet using event delegation.

Event delegation
Example 16: Setting up delegated events
Example 17: Listening to key events

This is a great tool for testing your event code, trigger events without the browser event actually occurring.

Example 18: Event triggers

A simple DOM component can choose to fire its own custom events.

Custom events
Example 19: Working with custom events
+ CSS And Animations
15 lectures 01:14:26

Get introduced to the variety of animations that jQuery enables for us.

Preview 03:57
Example 20: The css() function
Example 21: The show() and hide() functions
Example 22: The fadeIn() and fadeOut() animations
Example 23: The slideUp() and slideDown() animations
Example 24: The toggle() function

Look behind the scenes at how jQuery manages to smoothly change CSS properties over the duration of the animation.

How do jQuery animations work?
Example 25: Run code after an animation completes
Example 26: The animate() function
Example 27: More animation fun
Example 28: Stop animations using the stop() function

You can add a delay between every animation that plays using a simple function

Example 29: Delay animations using delay()
Example 30: Chaining and queueing animations

Animations can be logically bundled together by adding them to custom queues.

Example 31: Custom animation queues
Example 32: Bypassing the queue
+ DOM Manipulation
8 lectures 40:36
Example 33: Manipulating element contents
Example 34: The attr() and removeAttr() functions
Example 35: Add DOM elements relative to selected elements
Example 36: Create or clone elements

Remove elements from the DOM before editing them as a performance optimization

Example 37: The remove(), detach() and empty() functions
Example 38: The wrap() and wrapAll() functions
Example 39: Explicit iteration using each()
+ Ajax Requests
6 lectures 41:19
Example 40: The $.ajax() request
Example 41: Syntactic sugar - the $.get(), $.getScript(), $.getJSON()
Example 42: The load() function
Example 43: Serialize form contents using serialize() and serializeArray()
Example 44: Local and global Ajax events
+ Performance Optimizations
2 lectures 13:18

Techniques to reduce the number of times you render the DOM can greatly help improve performance.

Performance optimizations tips and tricks
  • Basic understanding of HTML, CSS and Javascript

NOTE: This course uses jQuery 3.1.0 and jQuery UI 1.12.1

jQuery takes the most common operations that you would want to perform on your website and allows you to accomplish it in one line of code. Learn jQuery by example: from  basic building blocks to developing your own custom plugins!

Let's parse that.

  • Accomplish stuff with one line of code: jQuery makes common stuff super simple. Select all paragraphs on a page? One line of code. Style all headers under the container <div> with a yellow highlight? One line of code. Animate all the ball widgets such that they bounce and move around the screen? One line of code
  • Basic building blocks to custom plugins: The course starts with basic principles which form the backbone of jQuery. Selectors, working with events, applying styles and animations, DOM manipulations, Ajax requests, using custom plugins etc. The later part of the course shows you can roll your own stateless and stateful plugins using the $.fn object and the widget factory.
  • In this course, we will learn by example. Each example is self-contained, has its source code attached, and gets across a specific jQuery use-case. Each example is simple by itself, but they come together as building blocks to build complex use cases.

What's included in this course:

  • Installing and setting up a basic web server with jQuery and jQuery UI libraries 
  • jQuery basics: Selectors, selector functions, mouse and key event handlers, CSS animations and styles, the animate() function, appending and editing DOM elements, Ajax requests
  • jQuery in-depth: Advanced selectors, event propagation, event capture and bubble phases, how animations work, custom animation queues and bypassing the queues, performance tips and tricks
  • jQuery plugins: Using custom plugins, developing a stateless plugin using the $.fn object, stateful plugins using the Widget Factory, jQuery UI components and the jQuery UI theme roller
Who this course is for:
  • Yup! Web developers who want to move beyond mundane Javascript programming and harness the power of jQuery
  • Nope! Students who have never done web development using Javascript before