ASP.NET MVC 3 unobtrusive validation and radio buttons
问题 I'm trying to do required validation on a list of radio buttons to force the user to select an option to continue. The validation does work but it only outputs metadata on the first radio button and it only marks the first radio button with the class input-validation-error. Example: <p>@Html.RadioButtonFor(x => x.Choices, SomeEnum.OptionOne)</p> <p>@Html.RadioButtonFor(x => x.Choices, SomeEnum.OptionTwo)</p> Resulting HTML: <p><input class="input-validation-error" data-val="true" data-val