I have a button in a webform which is shown as disabled in IE9 while when the same page is opened in IE10 it is shown as enabled.
What is the reason why this behaviour is observed?
BElow is the part of the aspx page.
<div class="controlBox">
<asp:Button ID="btnYes" runat="server" OnClick="btnYes_Click" />
<asp:Button ID="btnNo" runat="server" OnClick="btnNo_Click" />
</div>
And this is how its visibility is controlled
document.getElementById("btnNo").style.visibility = "visible";
document.getElementById("btnNo").disabled=false;
Is it got something to do with how disabled property is handled by IE10.