I am using knockout.js plugin. I have created a custom validation rule named select for selectlist. I have created a jsfiddle :
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 ?
Add a default value
'0'to your observable, then the validation won’t fire for the initial value:Demo
JSfiddle.