You can do that with a custom method:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod

Untested:
jQuery.validator.addMethod("phone", function() {
  return $("#mobile").val() || $("#work").val();
}, "Please specify either work or mobile phone number");

Jörn

On Fri, May 23, 2008 at 12:12 AM, TiGeRWooD <[EMAIL PROTECTED]> wrote:
>
> Hi, is it possible with jquery validate to check 2 fields but only 1
> of these 2 fields would be required ...
> one or the other ...
>
> I would have at least one phone number of client (work or mobile phone
> number) ...
>
> Thanks for your help ...
>

Reply via email to