I would like to disable button after one click.
Code:
<button id="submitRequest" class="btn btn-primary btn-active"
ng-disabled="!frmRequest.$valid||!r.DataUseAgreement||(!chkBMT&&!chkOncore&&!chkCAISIS&&!chkLIMS&&!chkFCR)"
ng-click="SaveData()">
<i class="fa fa-save"></i> Submit
</button>
How to disable this one after one click?
Thanks!
Simple. You write to element a bit of javascript, like onclick="this.disabled=true"
.
<button id="submitRequest" onclick="this.disabled=true" class="btn btn-primary btn-active" ng-disabled="!frmRequest.$valid||!r.DataUseAgreement||(!chkBMT&&!chkOncore&&!chkCAISIS&&!chkLIMS&&!chkFCR)" ng-click="SaveData()"><i class="fa fa-save"></i> Submit</button>