And so is params and depends new functions that were not originally in the JQuery library? So do I have to update the core .js file on our app in order to use the params and depends on any validator method?
On Mar 4, 2:14 pm, Scott González <[EMAIL PROTECTED]> wrote: > There is now a planned solution for adding dependency checks to all > validation methods. Seehttp://dev.jquery.com/ticket/2456for more > details. > > On Mar 3, 11:13 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > How can I compare 2 text fields only if a certain checkbox is > > checked? Can you do something like this? > > > billingAddress: { > > required: true > > minlength: 5 > > equalTo: "#shippingAddress" && function(element) { > > return jQuery("#comparefields").is(":checked"); > > > }, > > > I'm not sure if this is possible or how to form this correctly. I > > assume you'd be able to do this in an equalto along with specifying > > which field to compare to.