Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not support of H5F validation plugin #17

Open
visicode opened this issue Sep 29, 2012 · 0 comments
Open

Not support of H5F validation plugin #17

visicode opened this issue Sep 29, 2012 · 0 comments

Comments

@visicode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant