Bug Tracker

Opened 12 years ago

Closed 10 years ago

#2369 closed enhancement (invalid)

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*)

Change History (1)

comment:1 Changed 10 years ago by dmethvin

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 .

Note: See TracTickets for help on using tickets.