Thanks to visit codestin.com
Credit goes to github.com

Skip to content

cancel validation when submitting form via javascript #1513

Open
@staabm

Description

@staabm

Inside a jquery-validated form I have a <a> link which is used submit the form and regenerate a captcha image.

The logic on the link is like onclick="$(this).closest("form").submit()".
In our forms the client side validation now kicks in and does not allow the form submit.

I need something like the formnovalidate or class="cancel" mechanism, but atm this features are only implemented on elemtens matching :submit. So this doesnt work for my <a>.
Since this is a very basic re-usable component I cannot "just change the markup or js".

https://github.com/jzaefferer/jquery-validation/blob/master/src/core.js#L27

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions