I have 3 instances of cute editor. I want to validate the third instance to ensure that data has been entered.
The third instance has the ID of Editor3. How do I reference that ID in javascript.
My code:
$editor=new CuteEditor();
$editor->ID="Editor3";
$editor->Text="";
$editor->EditorBodyStyle="font:normal 12px arial;";
$editor->EditorWysiwygModeCss="php.css";
$editor->FilesPath="CuteEditor_Files";
$editor->AutoConfigure="Minimal";
$editor->Width="60%";
$editor->Height="200";
$editor->Draw();
$editor=null;
When there is only one, I am able to use
the following to validate:
var editorbox = document.getElementById('CE_Editor1_ID');
var content = editorbox.getHTML();
if (content == "" || content == null) {
strMsg = strMsg + 'something is missing.' + '"r"n';
formvalidationOK = false;}