Modify ↓
Ticket #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: | |
| 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
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 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 .