Skip to main content
00:00/00:00
Lecture 38 of 104

Accessing an input within a form element

Download Course (Free)

Course Content

0 / 104 completed
Section 1: Capturing and Bubbling9 videos

An event is not an isolated occurrence

5m

Section introduction

29m

The 2 phases of an event - capturing & bubbling

8m

How to listen to an event during the capturing phase

5m

Example - lets listen to an event during both phases

5m

Example - capturing and bubbling using the for ... of loop

14m

Who cares about capturing vs bubbling

4m

How to stop event capturing and event bubbling

3m

Example of stopPropagation()

11m
Section 2: Event Delegation and Challenges12 videos

Event Delegation Introduction

5m

Box Challenge - intro

16m

Box Challenge - build

6m

What is the classList property

3m

Box Challenge - solution

18m

Box Challenge - perfecting our solution

6m

Quote Challenge - intro

2m

Quote Challenge - solution

10m

Quote Challenge - build

17m

List Challenge - intro

2m

List Challenge - build

6m

List Challenge - solution

10m
Section 3: Website Project - A Shopping List31 videos

What are we going to build

4m

High level overview of the website structure

8m

Building our website HTML

14m

Coding the CSS for the header

11m

Coding the CSS for the form and list section

13m

DOM access methods, the forEach method, and nodes - quick recap

10m

Removing items - the old school way

7m

Removing items - using event bubbling and event delegation

7m

Introduction to dealing with forms

5m

Default behavior with forms and how to prevent the default behavior

9m

Adding items to our list - creating elements dynamically

21m

Adding items to our list - adding classes with the classList API

13m

Hiding and un-hiding our shopping list

12m

Recap of the different event listeners we've already dealt with

37m

What is the toLowerCase() method

37m

Accessing our li tags, and introduction to the Array.from() method

6m

Accessing an input within a form element

1h 30mNow Playing

Introduction to the Array.from() method

14m

How does Array.from() work - some practical examples

21m

Using forEach() to loop through our groceries array

9m

Introduction to indexOf()

8m

Using indexOf() method with Arrays

9m

Using indexOf() method with Strings

15m

Finishing off our search functionality

9m

IMPROVEMENT clear the input text when the user clicks a button

4m

IMPROVEMENT I want you to add tabs

1m

What is the data attribute

3m

IMPROVEMENT building our tabs (HTML + CSS)

15m

Using the classList API to add dynamic classes to our heading tabs

32m

IMPROVEMENT Showing and hiding our panels when the heading tab is clicked

9m

IMPROVEMENT adding a button for our answer

7m
Section 4: Outro1 videos

Bonus lecture - where to next

13m
Section 5: Introduction to DOM Events23 videos

Introduction - what is a DOM event

3m

The 2 most important things when it comes to events

10m

Inline Properties - brief introduction

9m

Inline Event Listeners - brief introduction

13m

addEventListener() method - brief introduction

8m

Inline Event Listeners - detailed overview

9m

A quick word on events

10m

Summary - the 3 ways to add an event listener to HTML elements

1m

Inline Event Listeners - TEST setup (part 2 of 3)

5m

Inline Event Listeners - TEST introduction (part 1 of 3)

2m

Inline Event Listeners - TEST solution (part 3 of 3)

12m

Inline Properties - detailed overview

3m

Inline Properties - TEST setup (part 2 of 3)

8m

Inline Properties - TEST introduction (part 1 of 3)

2m

Inline Properties - TEST solution (part 3 of 3)

23m

addEventListener() method - detailed overview

35m

Callback functions - a quick overview

9m

addEventListener - TEST introduction (part 1 of 3)

17m

addEventListener - TEST setup (part 2 of 3)

14m

EXTRA lecture - 3 ways to define a color

8m

addEventListener - TEST solution (part 3 of 3)

20m

EXTRA lecture - digits, bytes and hexadecimal format

15m

EXTRA lecture - toString() method

4m
Section 6: Different types of events10 videos

Quick click event example - part 1 of 2

5m

Quick click event example - part 2 of 2

8m

Event types

8m

Keydown event - example

3m

Form building our page - HTML + CSS

16m

How to find forms and its default behavior

9m

Form events - intro

2m

Overview of what form I want you to build

1m

Touch and Window events

3m

Input event, focus event and copypaste events

6m
Section 7: Event Challenges8 videos

Challenge 1 - click image and display text

5m

Challenge 1 - Introduction

1m

Challenge 2 - Reveal text when mouse moves over image

6m

Challenge 2 - Introduction

1m

Challenge 2 - Create a black dot when mouse moves over image

19m

Challenge 2 - Dynamic dot movement and complete solution

19m

Challenge 3 - Mustache

2m

Challenge 3 - Placing a Mustache on an image

20m
Section 8: Object and node hierarchy10 videos

The importance of understanding inheritance

4m

JS objects vs DOM objects in the console

19m

Host vs Native Objects

33m

Finding the createElement() method

5m

Quick recap on object hierarchy

3m

What is DOM extension

4m

Element node - object hierarchy

34m

Adding our own DOM extension - practical example

4m

Are DOM extensions a good thing

5m

What are the problems with DOM extensions

35m