Modify ↓
Ticket #2989 (closed enhancement: fixed)
[validate] Turning off validation on back, cancel button
| Reported by: | magleahy | Owned by: | joern |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | plugin | Version: | 1.2.6 |
| Keywords: | validation off back cancel | Cc: | mag@… |
| Blocking: | Blocked by: |
Description
The requirement would be to be able to press a back or cancel button or input and for validation to be turned off/ignored/diasabled.
At the moment the code does this for input type="submit" but I need it to work for input type="image".
Attachments
Change History
Changed 5 years ago by magleahy
-
attachment
jquery.validate.min.js
added
comment:1 Changed 5 years ago by joern
- need changed from Review to Test Case
- Owner set to joern
- Type changed from bug to enhancement
One possible selector would be find("input, button").filter(".cancel"), avoiding the pure class-selector.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

This is the jquery validation file with code changed from: this.find(".cancel:submit").click(function() { to: this.find(".cancel").click(function() { so that the cancel class turns off validation for both input type="submit" and input type="image"