Skip to content

mikemaccana/jquery-html5-validity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Use the HTML5 CheckValidity API from jQuery

A jQuery plugin to use the HTML5 CheckValidity API from jQuery. Just:

npm install jquery-html5-validity

Then:

var $ = require('jquery')
require("jquery-html5-validity")($);

then you can run:

$('.some-class').isValid()

true

You can also:

$('.some-class').setCustomValidity(reason)

Where 'reason' is either a String or null / false (to say something is valid).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published