开发者

Disabling xVal for Hidden Fields

开发者 https://www.devze.com 2023-01-15 01:15 出处:网络
In my MVC application, I\'ve got a page where I use a few hidden fields to make some calculatio开发者_如何学Pythonns under the hood. This page is loaded with xVal validations to make the data coherent

In my MVC application, I've got a page where I use a few hidden fields to make some calculatio开发者_如何学Pythonns 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号