1
我想用引導3驗證狀態像播放框架2表單字段有hasError但如何檢查一個字段是有效
<div class="form-group has-success">
<label class="control-label" for="inputSuccess1">Input with success</label>
<input type="text" class="form-control" id="inputSuccess1">
</div>
<div class="form-group has-error">
<label class="control-label" for="inputError1">Input with error</label>
<input type="text" class="form-control" id="inputError1">
</div>
如何檢查狀態success
?在首次提交表單字段之前沒有錯誤,但這並不意味着該字段是正確的。