嗨,我有一个包含几个 Accordion Group 的页面,如下面的代码。提交后,我想是否可以打开第一个出现错误的手风琴组(在我的代码中,我有 2 个手风琴组,需要 2 个不同的输入)
<uib-accordion class="accordion-bs" id="accordionTest">
<uib-accordion-group heading="Referente 2" >
<div class="panel-body">
<div class="col-xs-6 form-horizontal paddL0">
<div class="form-group" >
<div class="col-xs-7">
<input type="text" class="form-control SB-width" name="ref2_nome" ng-model="data.ref2_nome" required>
<span ng-if="datiRiferimentiForm.ref2_nome.$invalid && !datiRiferimentiForm.ref2_nome.$pristine" class="help-block help-width">Error</span>
</div>
</div>
</div>
</div>
</uib-accordion-group>
<uib-accordion-group heading="Referente 2" >
<div class="panel-body">
<div class="col-xs-6 form-horizontal paddL0">
<div class="form-group" >
<div class="col-xs-7">
<input type="text" class="form-control SB-width" name="ref2_cognome" ng-model="data.ref2_cognome" required>
<span ng-if="datiRiferimentiForm.ref2_cognome.$invalid && !datiRiferimentiForm.ref2_cognome.$pristine" class="help-block help-width">Error</span>
</div>
</div>
</div>
</div>
</uib-accordion-group>
</uib-accordion>
提交