jquery-html5-validity

1.1.2 • Public • Published

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).

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i jquery-html5-validity

      Weekly Downloads

      48

      Version

      1.1.2

      License

      MIT

      Last publish

      Collaborators

      • mikemaccana