Skip to main content

Bug Tracker

Side navigation

#2369 closed enhancement (invalid)

Opened February 20, 2008 02:03AM UTC

Closed October 12, 2009 11:27PM UTC

Enable digits: false;

Reported by: PlanetPratt Owned by:
Priority: major Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: validator Cc:
Blocked by: Blocking:
Description

In order to allow dynamically active validation, the digits validator should access and respect it parameter. This would allow code similar to:

$(document).ready(function() {
 $("#formid").bind("validate",function(e,validator) {}).validate({
   rules: {
     fieldOne: {required : true},
     fieldTwo: {
       required: true,
       digits: function(e) { return $
(e.target).find("input[name=fieldOne]:checked").val) == 'digits'; }
     }
   }
 }
}

Thanks.

(*Chris*)

Attachments (0)
Change History (1)

Changed October 12, 2009 11:27PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .