[英]Issue with custom validation rule
I am using knockout.js plugin. 我正在使用基因敲除插件。 I have created a custom validation rule named select
for selectlist. 我创建了一个名为select
for selectlist的自定义验证规则。 I have created a jsfiddle : 我创建了一个jsfiddle:
http://jsfiddle.net/fQBxM/1/ http://jsfiddle.net/fQBxM/1/
My problem is when i load the page, the validation message is already shown, but i want to show it only when user submit the form. 我的问题是,当我加载页面时,验证消息已经显示,但是我只想在用户提交表单时显示它。 How can i do this ? 我怎样才能做到这一点 ?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.