Forms and JavaScript
How to interact with forms using JavaScript

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


In this unit we’ll talk about how to interact with a form using JavaScript.

I’ll introduce

  1. how to inspect the value of an input field
  2. how to listen to events on input fields
  3. how to intercept a form submit event

Let’s go!

Lessons in this unit:

0: ▶︎ Introduction
1: Inspect the value of an item
2: Listen to events on input fields
3: Intercepting a form submit event using JavaScript
4: Redirect to a link when user selects option in a select