HTMx - tutorial part V - Validation
January 22, 2025
This is the fifth post in a series that I’m making about HTMx that I think is utterly amazing and will change how I (we?) write web apps in the future.
You are more than welcome to read from here, but then I would recommend getting the code from this point, if you intend to type along.
The application is working fine, but there’s zero validation in place. I wanted to do some simple validation on the client (and here I have a bug) and then also show how to do validation on the server-side and return an error message from there.
Validation can be tricky and often lead to a lot of code. But it’s an obvious addition to the code.