Content-Length: 275784 | pFad | http://github.com/jquery-validation/jquery-validation/issues/1513

AD cancel validation when submitting form via javascript · Issue #1513 · jquery-validation/jquery-validation · GitHub
Skip to content

cancel validation when submitting form via javascript #1513

@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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/jquery-validation/jquery-validation/issues/1513

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy