Hello Folks,
I am using FCKEditor in a form designed in ASP. When I sumbit the form, i use the below code for validating all fields.
if (form.Name.value == "") {
alert("You must enter your name");
form.Name.focus()
return false; }
This works well for regular text fields and textareas. However, when I use it on FCKEditor, I do get the alert that the field is empty but the form is submitted anyways.
Can anyone suggest me an alternative?
Thanks
-Neo
I am using FCKEditor in a form designed in ASP. When I sumbit the form, i use the below code for validating all fields.
if (form.Name.value == "") {
alert("You must enter your name");
form.Name.focus()
return false; }
This works well for regular text fields and textareas. However, when I use it on FCKEditor, I do get the alert that the field is empty but the form is submitted anyways.
Can anyone suggest me an alternative?
Thanks
-Neo