我在Bootstrap 3中使用此验证器: http://1000hz.github.io/bootstrap-validator
我有两个字段
<div class="form-group">
<label for="url" class="control-label">URL</label>
<input id="url" name="url" type='text' class="form-control" require/>
<div class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="url2" class="control-label">URL2</label>
<input id="url2" name="url2" type='text' class="form-control" require/>
<div class="help-block with-errors"></div>
</div>
只需要填写一个,任何想法?
感谢。