Text Field & Textarea Validation

This text fields requires 2 to 8 character long value, where text area 3 to 20. Empty string before and after will be removed.

            <input data-type="text" class="required" data-min="2" data-max="8" />
            <textarea class="required" id="" cols="30" rows="10" data-min="3" data-max="20"></textarea>
        





E-mail Validation

This text fields requires a valid email address.

        <input data-type="email" class="required" />
        


Password Field Validation

This password fields requires 6 to 20 character long value which contains at least one Upper, one lower case, one digit and one of these '@#$%' special characters. See README for more Options about modifying the Rule.

        <input data-type="password" class="required"  />
        


Date Validation

This text fields requires a valid date between 2014-01-01 and next 2105-01-01.

        <input data-type="date" class="required" data-min="2014-01-01" data-max="2015-01-01" />
        


jQuery UI DatePicker>  Validation

This text fields requires a valid date between last 2 months and next 1 week.

        <input data-type="datepicker" class="required" data-min="-2M" data-max="+1W" />
        


jQuery UI Spinner Widget  Validation

No validation required. All options are applicable to jQuery slider UI.

        <input data-type="spinner" class="required" data-min="10" data-max="50" data-step="5" />
        


jQuery UI Slider Widget  Validation

No validation required. All options are applicable to jQuery slider UI.

        <input data-type="slider" class="required" data-min="10" data-max="50" data-step="5" />
        


Checkbox Validation

Checkbox validation is designed to check if checkbox is checked! :) A checkbox is only valid if it's checked

        <input data-type="checkbox" class="required" />
        


Radios Validation

Radios validation is designed to check if atleast one of the element in the same group is selected!

        <input data-type="radio" name="radio" value="m" class="required" />
        <input data-type="radio" name="radio" value="f" class="required" />
        <input data-type="radio" name="radio" value="n" class="required" />

        


Number Field Validation

Converts any input to valid integer. It also enables to check String-type length. Below Number field requires 1 to 3 digits number.
See README for more Options

Dependency : accounting.js
        <input data-type="number" class="required" data-min="1" data-max="3" />
        


Currency Validation

Converts any input to formatted Currency. Following currency field accepts -3,50 to 21,99 value.
See README for more Options

Dependency : accounting.js
        <input data-type="number" class="required" data-min="-3,5" data-max="21,99" />
        


Telephone Validation

Validates input as telephone number. This validation needs to be improved. Currently test the value against allowed characters, like 0-9, (, ), # , ext-

        <input data-type="tel" class="required" />
        


URL Validation

Validates input as url(link). This validation needs to be improved. Currently test the value against allowed characters. But the result is still may be an invalid URL.

        <input data-type="url" class="required" />