Skip to content

keobrien/Custom-HTML5-Validation-Messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Custom HTML5 Validation Messages

Plugin allows customizing HTML5 validation messages using data attributes on an element. Simply use any of the validity states in the reference below as a data attribute on a form element. This will define the custom message that appears when that element is in that validity state. This is a jQuery plugin so jQuery is required.

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Data_form_validation#Validating_forms_using_JavaScript

Example Use:

`

$('form').customValidationMsgs();`

Supported validation States

  • valueMissing
  • typeMismatch
  • patternMismatch
  • tooLong
  • rangeUnderflow
  • rangeOverflow
  • stepMismatch
  • valid

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published