Thanks Scott.

What's a planned solution? It says a ticket.  So does that mean
dependency checks were something just implemented in the fix in the
API to allow us to do this?

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.

Reply via email to