1. Technology
Send to a Friend via Email

A Script for Every Occasion

The complete scripts that I have written are free for you to copy and use on your own site (provided you keep the copyright notice). I have scripts that cover most of the types of things that can be done with JavaScript.

JavaScript Spotlight10

Unobtrusive Form Field Validation


JavaScript Form Processing

This is a complete example of all the HTML and JavaScript required to unobtrusively attach JavaScript validations to a form. It also includes the code to validate the HTML 5 required and pattern attributes across all browsers.

JavaScript Form Processing

Even though older browsers don't support the HTML5 pattern attribute for form fields we can implement it ourselves in JavaScript.

JavaScript Form Processing

Even though older browsers don't support the HTML5 required attribute for form fields we can implement it ourselves in JavaScript.

JavaScript Form Processing

Once our form validation detects an error we need an unobtrusive way to display the error.

Variables, Functions, Properties and Methods

While these four terms have distinct meanings in some languages, things are not as clear cut in JavaScript.

JavaScript Form Processing

When we set up unobtrusive form field validation we can easily share validation between fields that need to validate the same way.

Radio Button Validation

Everything you need to know about radio button creation and validation.

JavaScript Form Processing

The modern unobtrusive way of attaching JavaScript to validate a form in your web page doesn't require any changes to the HTML of the form.

JavaScript Form Processing

Changes to both JavaScript and HTML have affected the way we should be using JavaScript to validate our forms and will affect it further in the future.

©2014 About.com. All rights reserved.