onClientClick事件在IE11浏览器中没有被触发,但是同样的代码在IE8,9和10浏览器中运行得非常好。我需要在那里添加任何额外的代码吗?
<table width="100%">
<tr>
<td align="center">
<asp:Button runat="server" ID="btnFTCancel" Text="Cancel"
OnClientClick="return confirmCancel();" OnClick="btnUpdate_Click" ClientIDMode="Static"/>
</td>
<td align="center">
<asp:Button runat="server" ID="btnApprove" Text="Approve" Enabled="false"
OnClientClick="return confirmApprove();" OnClick="btnUpdate_Click"/>
</td>
</tr>
</table>
<script type="text/javascript">
function confirmCancel() {
var returnvalue;
$("#btnFTCancel").css("cursor", "text");
returnvalue = confirm('Transactions generated for this request ID will be cancelled. Do you wish to continue ?');
return returnvalue;
}
function confirmApprove() {
var returnvalue;
returnvalue = confirm('Transactions generated for this request ID will be sent to FCS. Do you wish to continue ?');
return returnvalue;
}
function setBtnCursor() {
$("input[type='submit']").css('cursor', 'pointer');
$("input[type='submit'][disabled='disabled']").css('cursor', 'default');
}
</script>
TIA,
阿米特