I am using asp mvc model binding to bind a model that has objects in it. So
class SuperModel{
public ObjectA{get;set;}
}
Then in my view I am using @Html.TextBoxFor(model >= SuperModel.ObjectA.SomeProperty).
My issue is that I am using JQuery form validation, and as you know, TextBoxFor will auto generate a name of ObjectA.SomeProperty, which is what needs to happen so model binding works, but in my jquery validation code, I have:
form.validate({
rules: {
ObjectA.FName: {//INVALID BECAUSE OF PERIOD OBVIOUSLLY
minlength: 5,
required: true
},
So I need Jquery validation to work on a html field that has a name that has a period in it. How would I go about doing this? Or is there a better way. Thank you!