Bootstrap Validator - 两个字段,只需要填写一个

时间:2016-08-22 05:04:42

标签: javascript html twitter-bootstrap validation bootstrapvalidator

我在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>

只需要填写一个,任何想法?

感谢。

0 个答案:

没有答案