Skip to main content

Bug Tracker

Side navigation

#2989 closed enhancement (fixed)

Opened June 05, 2008 12:44PM UTC

Closed July 03, 2008 11:47AM UTC

Last modified April 17, 2014 03:21PM UTC

[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:
Blocked by: Blocking:

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 (1)
  • jquery.validate.min.js (24.8 KB) - added by magleahy June 05, 2008 12:59PM UTC.

    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"

Change History (5)

Changed June 05, 2008 01:02PM UTC by joern comment:1

need: ReviewTest Case
owner: → joern
type: bugenhancement

One possible selector would be find("input, button").filter(".cancel"), avoiding the pure class-selector.

Changed June 09, 2008 09:32PM UTC by joern comment:2

summary: jQuery validate: Turning off validation on back, cancel button[validate] Turning off validation on back, cancel button

Changed July 03, 2008 11:47AM UTC by joern comment:3

resolution: → fixed
status: newclosed

Fixed in [5762].

Changed April 17, 2014 09:43AM UTC by comment:4

Hi there,

found this thread today. To realize a back-button with class="back" I added this code to jquery.validate.js at line 28:

if ($("back")) {

validator.cancelSubmit = true;


return false;


Changed April 17, 2014 03:21PM UTC by magleahy comment:5

Thanks. Awesome.