-1

我在我的 MVC 应用程序中使用http://bassistance.de/jquery-plugins/jquery-plugin-validation/进行验证。

我有一个按要求标记的重复文本输入(使用敲除绑定):

<form id="myForm" class="validate_form" method="get" action="">

<input type="text" class="required error txtOrder" maxlength="4000" 
placeholder="Please enter your order..." data-bind="{ attr: { 
id: viewModel.orderID }}" />
  1. 有 10 行。
  2. 我单击“保存”并阻止表单,说该字段是必需的。
  3. 我在错误消息旁边的字段中输入了一些文本,将其他 9 行留空。
  4. 我单击“保存”,验证器认为表单现在有效并允许提交表单。

我究竟做错了什么?还是 jQuery 验证器不适用于淘汰赛?如果是这样,是否有一个外观专业的 jQuery 插件可以用于淘汰赛?

谢谢您的帮助。

4

1 回答 1

1

input shown has no name which is required to submit field and validator plugin uses name to identify fields also

于 2013-01-06T14:38:39.130 回答