I am using the FCKeditor text editor inside my website. I am trying to use a plugin with the editor that requires me to find the value of a control using documnet.getElementbyID().
I have NO Javascript experience but from what I can tell I need to do something like the following.
document.getElementById('<%= ("TitleTextBox.ClientID") %>');
It returns null.
I have also tried
document.getElementById('<%= ("Formview1.Findcontrol("TitleTextBox.ClientID") )%>');
I have read some about using ClientSrcipt.RegisterClientScriptBlock, but I am not exactly sure this is what I need, and if it is I need some help with where to put it and probably also need to learn exactly how the FCKeditor code works.
It does work if I go to the page source and copy the generated Id directly. But this is obviously not how i want to code it.
I would appreciate any help.
Thanks,
Laura