stepy
stepy copied to clipboard
Not support of H5F validation plugin
To add support of excellent H5F validation plugin in Stepy, just add this code:
jQuery.extend ({
validator: {
setDefaults: function () {
}
}
});
jQuery.fn.extend ({
validate: function () {
return {
element: function (field) {
return field.get (0).checkValidity ();
},
focusInvalid: function () {
}
}
}
});
PS: i think H5F is better than jquery validator plugin because it respect more the HTML5 syntax, so it will be easier to maintain source code when HTML5 will be fully supported by browsers