0
I have a project at the company where I am interning and I have had some errors when validating inputs. Use ASP.NET MVC, Razor, and Javascript. When submitting all fields I get an error. Using the Chrome console I found that this field:
@Html.HiddenFor(m => m.Material.DateCreated)
It is not valid. When I went to see the value, it was correct so I don’t think I need to validate because the value always comes from the controller. What I wanted to do is wear something like this:
$("#myform").validate({
ignore: "#target"
});
It seemed that I had the solution, but in my code what I have is $form.Valid() and I don’t know how to implement this 'ignore' as in the code above because it gives error. From what I researched I think that the version that is in the project is outdated, because I can not find anything in google with Valid(), only appears to me validate().