[英]Disable numeric validation on client side jquery.validate
Is it possible to disable "The field must be a number" validation message when using Validation Attributes in C#? 在C#中使用“验证属性”时,是否可以禁用“字段必须为数字”验证消息? I only need to disable the validation on the client side.
我只需要在客户端禁用验证。
在页面上调用所有验证脚本之后,添加类似于以下内容的内容:
$('#MyNumberField').rules('remove', 'number');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.