I have a project in the company where I'm interning and I've had some mistakes in validating some inputs. I use ASP.NET MVC, Razor, and Javascript. At the time of submitting all the fields I get an error. When using the Chrome console I discovered that this field:
@Html.HiddenFor(m => m.Material.DateCreated)
Not valid. When I went to see the value, it was correct so I guess I do not need to validate because the value always comes from the controller. What I wanted to do is use something like this:
$("#myform").validate({
ignore: "#target"
});
It seemed to have the solution, but in my code what I have is '$ form.valid ()' and I do not know how to implement this 'ignore' as in the above code because it gives error. I found the version that is in the project outdated because I can not find anything on google with valid () , only validate () appears to me.