Bug Tracker

Modify

Ticket #2369 (closed enhancement: invalid)

Opened 5 years ago

Last modified 4 years ago

Enable digits: false;

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

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

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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 .

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.