1.1.2 • Published 9 years ago
jquery-html5-validity v1.1.2
Use the HTML5 CheckValidity API from jQuery
A jQuery plugin to use the HTML5 CheckValidity API from jQuery. Just:
npm install jquery-html5-validityThen:
var $ = require('jquery')
require("jquery-html5-validity")($);then you can run:
$('.some-class').isValid()
trueYou can also:
$('.some-class').setCustomValidity(reason)Where 'reason' is either a String or null / false (to say something is valid).