Hi,
I have the following code used to check whether form inputs have been completed correctly:
Code:
<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
if (form.title.value == "") {
alert( "Please enter an article TITLE." );
form.title.focus();
return false ;
}
if (form.intro.value == "") {
alert( "Please enter and article INTRODUCTION." );
form.intro.focus();
return false ;
}
if (form.full.value == "") {
alert( "Please enter an article FULL STORY." );
form.full.focus();
return false ;
}
return true ;
}
//-->
</script>
The issue I have is that the two fields (intro and full) are textareas on which I am using the ckeditor text editor, and when I go to submit the form for the first time, it comes up saying that the 'intro' textarea has not got anything added. From removing the ckeditor add-on to the textarea I can see that this is causing the issue, but does anyone know of a workaround that may help?
Thanks,
Neil