stepy icon indicating copy to clipboard operation
stepy copied to clipboard

Not support of H5F validation plugin

Open visicode opened this issue 12 years ago • 0 comments

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

visicode avatar Sep 29 '12 07:09 visicode