Webshims Constraint Validation Polyfill - Basic Example
A basic example showing how Webshims can be used to polyfill native HTML5 form validation.
by TJ VanToll
HTML
<script src="http://afarkas.github.com/webshim/demos/js-webshim/minified/extras/modernizr-custom.js"></script>
<script src="http://afarkas.github.com/webshim/demos/js-webshim/minified/polyfiller.js"></script>
<form>
<input type="text" required value="" />
<input type="submit" value="Submit" />
</form>
JavaScript
jQuery.webshims.polyfill('forms');