Take a look at the original creditcard method, or any other. They all
start with a call to this.optional, and return true when that call
returns true.

Jörn

On Fri, Dec 12, 2008 at 10:03 AM, ekilater <ivan.tho...@gmail.com> wrote:
>
> Hi all,
>
> I've a form that validates using jQuery.
>
> In that form we use a small credit card validation with an extension
> that you can find here: 
> http://www.ihwy.com/Labs/jquery-validate-credit-card-extension.aspx
> // Is only a small tweek of creditcard method.
>
> We want only some fields required, and that's no problem, adding the
> rules properly in the JS or with the "class".. but, we DON'T want the
> field "creditcard" required.. and it's not possible to avoid this. We
> haven't put the required rule, but we think that's an innherit
> property of the class?
>
> That's the form:
>
> http://hotelantibes.net/en/reservas/
>
> If you hit the "send" button, required fields will be marked.. and de
> creditcard wouldnt be marked as well we don't want it required.
>
> Some idea to avoid this?
>
> Thanks in advance,
>
> Iván
>

Reply via email to