我能够成功填写表格,插入用户名和密码,但“提交”按钮仍为灰色...
您有什么建议吗?
webView.evaluateJavaScript("document.getElementById('userXS').value='\(user)'", completionHandler: nil)
webView.evaluateJavaScript("document.getElementById('passwordXS').value='\(pass)'", completionHandler: nil)
这是带有未启用按钮的表单组:
<div class="form-group">
<div class="help-block text-center underlined">
<a href="/adesioni/manageRecuperoDatiRegistrazione.do?adfgenDispatchAction=resetPasswordUtente&org.apache.struts.taglib.html.CANCEL=true&adfgenResetSession=true"><strong>Password Dimenticata ?</strong></a>
</div>
<div class="form-group" data-cg-busy="{promise:loginPromiseXs,templateUrl:'/opencms/opencms/system/modules/my.template/resources/busyTemplate_small.html'}" style="position: relative;">
<button type="submit" class="btn btn-lg colorButtonBlue fontWhite btn-block" data-ng-disabled="checkLogin(formXS)" disabled="disabled">ENTRA</button>
<div class="cg-busy cg-busy-backdrop cg-busy-backdrop-animation ng-hide ng-scope" ng-show="$cgBusyIsActive()"></div><div class="cg-busy cg-busy-animation ng-hide ng-scope" ng-show="$cgBusyIsActive()"><div class="padding-left15-lg" style="position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; background-repeat: no-repeat no-repeat;">
<img class="center-img spinner-effect" src="/opencms/opencms/immagini/rifacimento_nuovo_portale/Eclipse_piccolo.gif">
</div> </div></div>
<div class="help-block text-center">Sei un nuovo utente?
<a class="underlined" href="/opencms/opencms/registrazione.html"><strong> Registrati</strong>
</a>
</div>
</div>
我发现“按钮”行上有“禁用”元素。有什么我可以做的吗?谢谢!