🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

validity.js is a small jQuery HTML5 form validation plugin used to validate the values of any form fields using the HTML validity property.

Form-Validation

Documentation

validity

jQuery form validation using validity property.

Examples

Getting Started

<script src="//code.jquery.com/jquery-3.3.1.min.js"></script> <script src="jquery.validity.js"></script> 

Usage

$('.form')     .validity()     .on('submit', function(e) {         if (!$(this).valid()) {             e.preventDefault();         }     }); 
$('.form')     .validity()     .on('submit', function(e) {         if ($(this).valid()) {             // ...         }     }); 

Examples


You May Also Like