我在我的项目中使用引导程序和淘汰赛。之前我使用的是淘汰赛验证,但现在我必须使用带有淘汰赛视图模型和引导 html 的 jquery 验证引擎。假设这是我的 html
<fieldset>
<div class="form-group">
<label for="name">Name</label>
<input type="text" class="form-control placeholder" id="personName" placeholder="Your name" data-bind="value: name" />
</div>
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control placeholder" id="personEmail" placeholder="Your email" data-original-title="Your activation email will be sent to this address." data-bind="value: email, event: { change: checkDuplicateEmail }" />
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control placeholder" id="password" placeholder="Password" data-bind="value: password" />
</div>
<div class="form-group">
<label for="confirmPassword">Repeat Password</label>
<input type="password" class="form-control placeholder" id="repeatPassword" placeholder="Repeat password" data-bind="value: confirmPassword, event: { change: matchPassword }" />
</div>
<div class="form-group">
<label for="companyName">Company Name</label>
<input type="text" class="form-control placeholder" id="companyName" placeholder="Your company name" data-bind="value: company" />
</div>
<div class="form-group">
<label for="country">Country</label>
<select class="form-control placeholder" id="country" data-bind="options: availableCountries, value: selectedCountry, optionsCaption: 'Country'"></select>
</div>
<button id="signupuser" type="button" data-bind="click: signup" class="btn btn-primary btn-block">Create Free Account</button>
</fieldset>
现在我对如何在 上面的代码中使用jQuery 验证引擎插件感到困惑。