PNG
IHDR C IDATx1
7
89T5 <' w q ; ` 0 ` 0 q w q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ; ` 0 q w q ; w ; ` 0 ` w 0 q ; w ; ` 0 ` w 0 q w q ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ` 0 q w q ; w ; ` 0 ` 0 q w q ; w ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ; ` 0 q w q ; w ; ` 0 ` w 0 q ; w ; ` 0 ` w 0 q w q ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; w ; ` 0 ` w 0 q ; w q ; w ; ` 0 ` w 0 q ; w ; ` 0 ` w 0 q w q ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ; ` 0 q w q ; w ; ` 0 ` w 0 q ; w ; ` 0 ` w 0 q w q ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` K 0 ` w 0 q ; w q ; ` 0 ` H 0 ` w 0 q ; w q ; ` 0 ` H 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ; ` 0 q w q ; w ; ` 0 ` w 0 q ; w ; ` 0 ` w 0 q w q ; ` 0 ` 0 q w q ; w ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` 0 q w q ; ` ; ` 0 q w 0 q ; w ; ` 0 ` w 0 q ; w q ; ` 0 ` w 0 q w q ; ` ; ` 0 q w q ; w ; ` 0 ` w 0 q d IENDB`
validator
=========
The javascript validation code is based on jQuery. The Validator is cross-browser and will give you the power to use future-proof input types such as ‘tel’, ‘email’, ‘number’, ‘date’, and ‘url’. I can sum this as a ‘template’ for creating web forms.
In the semantic point-of-view, I believe that this method is very clean and…appropriate. This is how forms should be, IMHO.
[DEMO PAGE](http://yaireo.github.io/validator)
### Why should you use this?
* Cross browser validation
* Deals with all sorts of edge cases
* Utilize new HTML5 types for unsupported browsers
* Flexible error messaging system
* Light-weight (10kb + comments)
## Validation types support
HTML5 offers a wide selection of input types. I saw no need to support them all, for example, a checkbox should not be validated as ‘required’ because why wouldn’t it be checked in the first place when the form is rendered?
For a full list of all the available Types, visit the working draft page.
These input types can be validated by the the JS for – ``. (Support is synthesized)
* Text
* Email
* Password
* Number
* Date
* URL
* Search
* File
* Tel
* Checkbox
* Hidden – Hidden fields can also have the ‘required’ attribute
The below form elements are also supported:
* Select – Useing a ‘required’ class because there is no such attribute for ‘select’ element
* Textarea
## Basic semantics