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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy