Start Javascript validating dates from a form

Javascript validating dates from a form

Using client side Java Script is an efficient way to validate the user input in web forms.

The objective of this technique is to notify the user when user input to a field that requires a specific, required format (e.g., date fields) is not submitted in that format.

If the required format is not used, an alert dialog describes the nature of the error in text.

The Java Script class presented here makes the form validations many times easier.

First, download the Java Script form validation script here.

See Understanding Techniques for WCAG Success Criteria for important information about the usage of these informative techniques and how they relate to the normative WCAG 2.0 success criteria.

The Applicability section explains the scope of the technique, and the presence of techniques for a specific technology does not imply that the technology can be used in all situations to create content that meets WCAG 2.0.

So, most of the web developers prefer Java Script form validation.