Question

In my MVC application, I've got a page where I use a few hidden fields to make some calculations under the hood. This page is loaded with xVal validations to make the data coherent. But the problem is that the xVal is also validating the hidden fields which are only used at the page itself. Is there any way of disabling xVal for hidden fields?

Was it helpful?

Solution

One way is to disable the fields, jquery validation will then ignore them.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top