[jQuery] Re: [validate] field 1 or field 2

2008-05-23 Thread AlexGrande.com
To see more custom methods go to http://www.thetruetribe.com/ 2008/05/how-to-use-jquery-plugin-validation.html">http:// www.thetruetribe.com/2008/05/how-to-use-jquery-plugin-validation.html On May 23, 9:39 am, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > You can do that with a custom > method:h

[jQuery] Re: [validate] field 1 or field 2

2008-05-23 Thread Jörn Zaefferer
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 1