Javascript with asp.net control not working in IE11
<asp:TextBox TextMode="Number" ID="alcup1" runat="server" ClientIDMode="Static" Height="20px" Width="60px" min="-45"max="45" onwheel="alcupFunction()" onkeyup="alcupFunction()" onkeydown="alcupFunction()" onchange="alcupFunction()"></asp:TextBox>function alcupFunction(controlname) {
var num = document.getElementById('<%=alcup1.ClientID %>').value;
if (document.getElementById('<%=RepeaterPwr1.ClientID %>').value == 10) {
if (num < -12) {
document.getElementById('<%=alcup1.ClientID %>').value = -12;
document.getElementById('<%=alcup1.ClientID %>').focus();
return false;
}
if (num > 12) {
document.getElementById('<%=alcup1.ClientID %>').value = 12;
document.getElementById('<%=alcup1.ClientID %>').focus();
return false;
}
} return true;
}
"The above script in working fine with chrome but why not with IE11???????? "