Hi,
I have a very simple form validation using Javascript as follows:
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
if (form.content.value == "") {
alert( "Please enter some content." );
form.content.focus();
return false ;
}
return true ;
}
//-->
</script>
The aim is to show the message if the textarea (called 'content') did not have anything in it. However, for some reason when CKEditor is used as the editor for this textarea, it does not recognise it on the first click, and you have to reclick to get to the next stage. Can anyone suggest a way to make this work?
Thanks,
Neil