views:

187

answers:

1

Using the Jquery validation plugin, I was curious to know if there is some sort of in-built functionality to have a "one of the two" is mandatory check. e.g: Email or mobile number is mandatory?

A: 

Ok serves me right for not googling enough.

To answer the question, by default No apparently it's not, but it isn't too difficult to write a custom rule either.

Rebecca has posted a solution on her blog at http://blog.rebeccamurphey.com/2009/04/15/jquery-validation-indicate-that-at-least-one-element-in-a-group-is-required/

Kaushik Gopal