Archive for the ‘form validation’ Category

Happier HTML5 Form Validation

Posted on: No Comments
HTML has given us loads of form validation stuff in the last few years. Dave Rupert puts a point on the UX problems with it: If you’ve ever experimented with HTML5 Form Validation, you’ve probably been disappointed. The out-of-box experience isn’...

Why Use a Third-Party Form Validation Library?

We've just wrapped up a great series of posts from Chris Ferdinandi on modern form validation. It starts here. These days, browsers have quite a few built-in tools for handling form validation including HTML attributes that can do quite a bit on their ...

Form Validation Part 3: A Validity State API Polyfill

Posted on: No Comments
In the last article in this series, we built a lightweight script (6kb, 2.7kb minified) using the Validity State API to enhance the native form validation experience. It works in all modern browsers and provides support IE support back to IE10. But, th...

Form Validation Part 1: Constraint Validation in HTML

Posted on: No Comments
Most JavaScript form validation libraries are large, and often require other libraries like jQuery. For example, MailChimp's embeddable form includes a 140kb validation file (minified). It includes the entire jQuery library, a third-party form validati...

Basic jQuery Form Validation Example (2mins)

Posted on: No Comments
This popular article was updated on 18th August, 2016 to correct some minor errors and reflect the current version of the library. This tutorial shows you how to set up a basic form validation with jQuery, demonstrated by a registration form. We’...

Regular Expressions in JavaScript

Even if Perl looks like spaghetti to you and you feel that no mere mortal is equipped to manage a Unix system, the fact that JavaScript includes support for Perl-style regular expressions is good news... trust us! Continue reading %Regular Expressions ...

Drupal 8 Entity Validation and Typed Data Demonstration

Posted on: No Comments
In the previous article of this series we’ve started our dive into the Entity Validation and Typed Data APIs. We’ve seen how DataType plugins interact with data definitions and how various constraints can be added to the latter at multiple levels a...

A Closer Look at Angular’s ngMessages Module

Posted on: No Comments
This article was peer reviewed by Marc Towler and Stephan Max. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Because of its ability to help developers craft better user experiences when building forms, t...