2

我正在尝试进行 IBAN 验证。在此步骤之前,用户需要输入国家(本例中为 5 个国家),然后当用户输入 IBAN 时,应根据所选国家进行验证。我目前正在尝试将 ng-iban 与一个国家 (BH) 一起使用,但似乎无法使其正常工作。感谢任何帮助,如果有人可以为此提供一些有用的提示,我也愿意使用 iban.js 库。我的国家选择代码和 IBAN 字段包括在内。谢谢!

<div class="form-group col-md-3 required">
            <label class ="control-label">Country of Treatment</label>
            <select class="form-control" ng-model="formDetails.Country" ng-options="lookup.ID as lookup.NAME for lookup in lookupCountry" required>
            </select>

<div class="form-group col-md-3 required">
            <label class ="control-label" >iBAN</label>
            <input ng-model="formDetails.IbanNumber" ng-required= "formDetails.PaymentType == 'Wire' " ng-readonly="formDetails.PaymentType == 'Cheque'" class="form-control" placeholder="Enter iBAN Number" ng-iban="[BH]" >
        </div>
4

0 回答 0