Matt Snider![]()
The HTML 5 forms project emulates the new attributes and input types available in HTML 5 for legacy browsers.
It current supports the attributes: autofocus, min, max, pattern, placeholder, and required
And the new types: email and url
More information is available at:
http://mattsnider.com/legacy-support-for-html-5-forms/
To use the HTML 5 Forms gallery, simply include the module, create a new instance, and render it. You may also provide an 'aftervalidationfx' function which will be called each time any field is validated.
YUI().use('gallery-html5-forms', function(Y) {
function aftervalidationfx(elNode, boolValid) {
// do something after a field validates or not
}
var html5Form = new Y.HTML5FormSupport({
boundingBox: '#id_form_test',
aftervalidationfx: aftervalidationfx
});
html5Form.render();
});No forum posts for this module.
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info