Member-only story

Accessible form validation from scratch — JavaScript

Part 5: Performing validation

Daniel Berryhill
UX Collective
9 min readSep 8, 2024

Hotels and buildings of a coastal city.
Photo by Karol Chomka on Unsplash

This is the fifth and final article in my “Accessible form validation from scratch” series.

Contents

Introduction

Here are the previous articles:

In this article, I’ll implement the JavaScript, which will perform the validation.

My goal has always been to offload as much as possible to CSS, which I believe I have. The JavaScript will validate the user’s input and inform the user what needs correcting.

A note on JavaScript

The JavaScript in this article will be sloppy. It doesn’t really matter. I’m not trying to be super tidy with it. How I validate the data isn’t as important as ensuring the validation…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (1)

Write a response