Skip to content Skip to sidebar Skip to footer

Knockout - Validation Showing Same Error Message Twice

I am using knockout validation plugin to validate a simple form field , validation is working but it is showing same error message twice below text box. my code follows JS viewmo

Solution 1:

You should put the validation options in the html OR in the javascript. Here you are doing both. I suggest putting them only to the javascript and remove them from the html like this:

<input name="txtService" id="txtInsservice"  data-bind="value: formField, valueUpdate: 'keyup'" class="field-stretch" type="text" /> 

Solution 2:


Post a Comment for "Knockout - Validation Showing Same Error Message Twice"