0

I am getting this error in .js file as

d.style.visibility='hidden';

What is d here I dont know,I have used a ckeditor replaced with the textbox as txtEditorAnswer.

Can anybody help me??

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

4 Comments

var txtEditorAnswer = document.getElementById('txtEditorAnswer').style.display = 'none';but its not working...anything more idea u suggest
if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';
@Srivastava i said because txtEditorAnswer will be some thing like a textbox
why u r using var txtEditorAnswer ? document.getElementById('txtEditorAnswer').style.display = 'none'; is enough

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.