Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 MVC 应用程序中,我有一个页面,我使用一些隐藏字段在后台进行一些计算。此页面加载了 xVal 验证以使数据保持一致。但问题是 xVal 也在验证仅在页面本身使用的隐藏字段。有没有办法为隐藏字段禁用 xVal?
一种方法是禁用字段,然后 jquery 验证将忽略它们。