I am getting this error in .js file as
d.style.visibility='hidden';
What is d here I dont know,I ha开发者_运维知识库ve used a ckeditor replaced with the textbox as txtEditorAnswer.
Can anybody help me??
i hope your html is like this
<html>
<div>
<input type="text" id="txtEditorAnswer" />
</div>
</html>
And what i think you need is to hide the txtEditorAnswer For this you need not create any variable .Just copy down the code below
It is for hiding the particular element.It is happen because u r not initializing the "d". If u want to set the visibilty hidden u just use like this
document.getElementById('txtEditorAnswer').style.display = 'none'
If u r using asp:textbox u might change to its client ID
document.getElementById('<%=txtEditorAnswer.ClientID%').style.display = 'none'
I hope the problem is due to the d is null always.I hope this will solve your issue.
精彩评论