My question is very similar to a previous question been asked in the following link,
MVC3 unobtrusive validation group of inputs
Basically I need to validate 3 or more input fields (required at lest one). For example I have Email, Fax, Address. Define as follow:
public class MyViewModel
{
public string Email { get; set; }
public string Fax { get; set; }
public Address Address { get; set; }
}
public class Address
{
public string Street { get; set; }
public string Suburb { get; set; }
}
I need the either Email, Fax or Address.Suburb to be filled in and if this fails, I want all the fields to be highlighted instead of just one field (which is what the solution in previous link contains).
Note, I've got all the server side validation working, I just need to know how would I need this to be done on my client side using MVC3 unobtrusive.