Form validation polyfill for better-dom
- polyfills HTML5 form validation markup support for browsers
- live extension - works for current and future content
- validity tooltips are fully customizable via css
- validity messages are fully custumizable (value of the
title
attribute for[pattern]
elements is supported as well) - programmatic configuration via new
validity
method for inputs and forms validity:ok
andvalidity:fail
events for advanced interactionmaxlength
attribute fix for<textarea>
- i18n support for any message text
Use bower to download this extension with all required dependencies.
bower install better-form-validation
This will clone the latest version of the better-form-validation into the bower_components
directory at the root of your project.
Then append the following script on your page:
<html>
<head>
...
<link rel="stylesheet" href="bower_components/better-form-validation/dist/better-form-validation.css"/>
<!--[if IE]>
<link href="bower_components/better-dom/dist/better-dom-legacy.htc" rel="htc"/>
<script src="bower_components/better-dom/dist/better-dom-legacy.js"></script>
<![endif]-->
</head>
<body>
...
<script src="bower_components/better-dom/dist/better-dom.js"></script>
<script src="bower_components/better-form-validation/dist/better-form-validation.js"></script>
</body>
</html>
- Chrome
- Safari 6.0+
- Firefox 16+
- Opera 12.10+
- IE8+