Right now, the easiest way to accomplish this is to use parameter or class based validation and dynamically change the parameter/class when the checkbox is checked (see http://tinyurl.com/2f6dsn for a previous explanation I've given on this).
Also, you may want to check out the second step of the Marketo demo (http://jquery.bassistance.de/validate/demo/marketo/) for an example of address validation. 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.