阅读背景:

ASP.NET MVC验证属性和Jquery

来源:互联网 

I have mvc attributes on fields that validate on submit. Although these attributes are on these fields, I want to override their validation if I click a SaveDraft button. Right now I try to disable validation of the field using jquery rules but the mvc attributes seem to override the rules. How can I make the MVC attributes ignore validation if I click a different button? Here is an example of what I want to do onClick but it does not work. I have mvc attributes on fields that validate o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: