我有这三个日期字段:
<div class="col-xs-12 form-group col-sm-6">
<div class="row">
<div class="col-xs-3">
<input autocomplete="off" class="form-control birth-day" id="dan_rodjenja" name="dan_rodjenja" max="31" min="1" placeholder="DD" required type="number" value="" />
</div>
<div class="col-xs-3">
<input autocomplete="off" class="form-control birth-month" id="mjesec_rodjenja" max="12" min="1" name="mjesec_rodjenja" placeholder="MM" required type="number" value="" />
</div>
<div class="col-xs-6">
<input autocomplete="off" class="form-control birth-year" id="godina_rodjenja" max="2000" min="1910" name="godina_rodjenja" placeholder="GGGG" required type="number" value="" />
</div>
</div>
例如,如果第一个和第二个字段已填充,而第三个字段为空,则不会出现错误(没有红色边框)。或者当我将第一个字段留空时,所有三个都显示错误。有人可以帮我解决这个问题吗?
我正在使用引导验证 http://1000hz.github.io/bootstrap-validator/。