本文介绍了在IE11上,日历功能未被禁用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,

I am using Internet explorer version 11 and an asp.net v4.0 web application. We have the below HTML code to place a calendar image on the web page. It has an onclick event which launches a calendar where user can select a date.




<TD class="tblCellClass" id="tblCellDt" width="24%" runat="server"><A title="Calendar" style="CURSOR: hand" onclick="javascript:void(DOSomething())"><IMG src="SampleImages/Calendar.gif" border="0" width="20" height="20"></A></TD>

Under certain situations, we disable this onclick functionality by disabling the td class "tblCellDt" in javascript as well as in code-behind.

This is how we are disabling in javascript:

document.all.tblCellDt.disabled = true;

and similary in code-behind vb.net file:

tblCellDt.Disabled = True

For some reasons, onclick functionality is getting disabled on Internet Explorere 8 but not on Internet explorer 11. Can you please help ?

推荐答案

document.getElementById("tblCellDt").disabled = true;





[]


这篇关于在IE11上,日历功能未被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-25 23:02